Author: diego Date: Fri Nov 4 15:29:31 2011 New Revision: 34299 Log: 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. Modified: trunk/configure Modified: trunk/configure ============================================================================== --- trunk/configure Fri Nov 4 13:30:42 2011 (r34298) +++ trunk/configure Fri Nov 4 15:29:31 2011 (r34299) @@ -3843,7 +3843,7 @@ cat > $TMPC << EOF #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"
participants (1)
-
diego