Mercurial > mplayer.hg
changeset 34211:203e14dbbe53
configure: remove erroneous extra set of braces from vsscanf test
POSIX does not make any promises about the layout of va_list. Thus
initializing it with extra braces might fail to compile on systems with
perfectly fine vsscanf support.
Skip the initialization instead, which also avoids warnings.
author | diego |
---|---|
date | Fri, 04 Nov 2011 14:29:31 +0000 |
parents | de376e7bcd65 |
children | 7014a2e64a3d |
files | configure |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Fri Nov 04 12:30:42 2011 +0000 +++ b/configure Fri Nov 04 14:29:31 2011 +0000 @@ -3843,7 +3843,7 @@ #define _ISOC99_SOURCE #include <stdarg.h> #include <stdio.h> -int main(void) { va_list ap = { { 0 } }; vsscanf("foo", "bar", ap); return 0; } +int main(void) { va_list ap; vsscanf("foo", "bar", ap); return 0; } EOF cc_check || { vsscanf=no ; def_vsscanf='#undef HAVE_VSSCANF' ; } echores "$vsscanf"