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
... | ... |
@@ -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 |