[FFmpeg-devel] [PATCH] Change broken -Werror=implicit flag in configure into working flag

Eli Friedman eli.friedman
Sun Jun 27 04:21:01 CEST 2010

Patch attached.  At least with gcc 4.4.3, -Werror=implicit does
nothing, and -Werror=implicit-int does not work with -std=c99.

The configure change exposes an error in ffserver.c, so I patched that
as well; I'm not sure if this is the best fix, though.  The function
in question is ff_url_split.

-------------- next part --------------
Index: ffserver.c
--- ffserver.c	(revision 23802)
+++ ffserver.c	(working copy)
@@ -29,6 +29,7 @@
 #include <strings.h>
 #include <stdlib.h>
 #include "libavformat/avformat.h"
+#include "libavformat/internal.h"
 #include "libavformat/network.h"
 #include "libavformat/os_support.h"
 #include "libavformat/rtpdec.h"
Index: configure
--- configure	(revision 23802)
+++ configure	(working copy)
@@ -2702,7 +2702,7 @@
     add_cflags -msg_disable unreachcode
 elif enabled gcc; then
     check_cflags -fno-tree-vectorize
-    check_cflags -Werror=implicit
+    check_cflags -Werror=implicit-function-declaration
     check_cflags -Werror=missing-prototypes
 elif enabled clang; then
     check_cflags -Qunused-arguments

More information about the ffmpeg-devel mailing list