[Ffmpeg-cvslog] CVS: ffmpeg configure,1.223,1.224

Diego Biurrun CVS diego
Tue Jan 3 15:18:46 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv14842

Modified Files:
	configure 
Log Message:
Add -Wdeclaration-after-statement to CFLAGS on GCCs that support it.
patch by Michel Bardiaux < mbardiaux !! at !! mediaxim !! dot !! be >


Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -d -r1.223 -r1.224
--- configure	30 Dec 2005 15:16:53 -0000	1.223
+++ configure	3 Jan 2006 14:18:43 -0000	1.224
@@ -1029,6 +1029,17 @@
   builtin_vector=yes
 fi
 
+# Probe for -Wdeclaration-after-statement
+if test "$cc" == "gcc"; then
+  cat > $TMPC << EOF
+  int main( void ) { return 0; }
+EOF
+
+  if $cc -Wdeclaration-after-statement -Werror -o $TMPE $TMPC 2> /dev/null ; then
+    CFLAGS="$CFLAGS -Wdeclaration-after-statement"
+  fi
+fi
+
 # dlopen/dlfcn.h probing
 
 cat > $TMPC << EOF





More information about the ffmpeg-cvslog mailing list