changeset 34202:a8a5ca46694e

configure: add braces to initializer in vsscanf test to shut up a gcc warning
author diego
date Thu, 03 Nov 2011 14:23:17 +0000
parents 079e40110dad
children 362c9229e16e
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Nov 03 14:23:14 2011 +0000
+++ b/configure	Thu Nov 03 14:23:17 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 = { { 0 } }; vsscanf("foo", "bar", ap); return 0; }
 EOF
 cc_check || { vsscanf=no ; def_vsscanf='#undef HAVE_VSSCANF' ; }
 echores "$vsscanf"