comparison configure @ 32150:068e6ec38400

Initialize variable in vsscanf configure check; fixes the warning: tmp.c:4: warning: 'ap' is used uninitialized in this function
author diego
date Tue, 14 Sep 2010 10:16:31 +0000
parents 0261b706dddf
children 681716cd9232
comparison
equal deleted inserted replaced
32149:0261b706dddf 32150:068e6ec38400
3907 echocheck "vsscanf()" 3907 echocheck "vsscanf()"
3908 cat > $TMPC << EOF 3908 cat > $TMPC << EOF
3909 #define _ISOC99_SOURCE 3909 #define _ISOC99_SOURCE
3910 #include <stdarg.h> 3910 #include <stdarg.h>
3911 #include <stdio.h> 3911 #include <stdio.h>
3912 int main(void) { va_list ap; vsscanf("foo", "bar", ap); return 0; } 3912 int main(void) { va_list ap = NULL; vsscanf("foo", "bar", ap); return 0; }
3913 EOF 3913 EOF
3914 _vsscanf=no 3914 _vsscanf=no
3915 cc_check && _vsscanf=yes 3915 cc_check && _vsscanf=yes
3916 if test "$_vsscanf" = yes ; then 3916 if test "$_vsscanf" = yes ; then
3917 def_vsscanf='#define HAVE_VSSCANF 1' 3917 def_vsscanf='#define HAVE_VSSCANF 1'