[MPlayer-cvslog] r32237 - trunk/configure

diego subversion at mplayerhq.hu
Tue Sep 14 12:41:25 CEST 2010


Author: diego
Date: Tue Sep 14 12:41:25 2010
New Revision: 32237

Log:
Initialize variable in libspeex configure check; fixes the warning:
tmp.c:2: warning: 'dec' is used uninitialized in this function

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Sep 14 12:32:27 2010	(r32236)
+++ trunk/configure	Tue Sep 14 12:41:25 2010	(r32237)
@@ -6677,8 +6677,9 @@ echocheck "libspeex (version >= 1.1 requ
 if test "$_speex" = auto ; then
   _speex=no
   cat > $TMPC << EOF
+#include <stddef.h>
 #include <speex/speex.h>
-int main(void) { SpeexBits bits; void *dec; speex_decode_int(dec, &bits, dec); return 0; }
+int main(void) { SpeexBits bits; void *dec = NULL; speex_decode_int(dec, &bits, dec); return 0; }
 EOF
   cc_check -lspeex $_ld_lm && _speex=yes
 fi


More information about the MPlayer-cvslog mailing list