Browse code

Error on missing function prototypes with gcc

This makes it an error to not have a prototype in scope for
a function with external linkage. The flag is only enabled
for gcc due to -Werror=type not working with all compilers.

Originally committed as revision 22313 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård authored on 2010/03/08 11:36:27
Showing 1 changed files
... ...
@@ -2752,6 +2752,7 @@ elif enabled ccc; then
2752 2752
 elif enabled gcc; then
2753 2753
     check_cflags -fno-tree-vectorize
2754 2754
     check_cflags -Werror=implicit
2755
+    check_cflags -Werror=missing-prototypes
2755 2756
 elif enabled clang; then
2756 2757
     check_cflags -Qunused-arguments
2757 2758
 elif enabled armcc; then