add back headers which are still needed and add warning and error flags to detect... master
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Nov 2016 18:40:01 +0000 (19:40 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Nov 2016 19:11:07 +0000 (20:11 +0100)
ffserver/ffserver.c
scripts/ffmpeg-uninstalled.sh

index a517085..a0c7207 100644 (file)
@@ -32,7 +32,9 @@
 #include <stdio.h>
 #include "libavformat/avformat.h"
 /* FIXME: those are internal headers, ffserver _really_ shouldn't use them */
+#include "libavformat/rtpproto.h"
 #include "libavformat/rtsp.h"
+#include "libavformat/avio_internal.h"
 #include "libavformat/internal.h"
 
 #include "libavutil/avassert.h"
index 8ef40dd..86abbc1 100755 (executable)
@@ -4,7 +4,9 @@ FFMPEG_SRC_PATH=~/ffmpeg-git/ffmpeg
 BDIR=~/ffmpeg-git/ffmpeg
 CMDUTILS_FLAGS="-lm"
 
-FFSERVER_FLAGS="-g3 $(PKG_CONFIG_PATH=$FFMPEG_SRC_PATH/doc/examples/pc-uninstalled pkg-config --libs --cflags libavfilter libavformat libavdevice libavcodec libswscale libswresample libavutil)"
+FFSERVER_FLAGS="-g3  -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign \
+                -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat \
+                $(PKG_CONFIG_PATH=$FFMPEG_SRC_PATH/doc/examples/pc-uninstalled pkg-config --libs --cflags libavfilter libavformat libavdevice libavcodec libswscale libswresample libavutil)"
 
 FFSERVER_SOURCES="$FFMPEG_SRC_PATH/cmdutils.o ffserver/ffserver.c ffserver/ffserver_config.c"