[FFmpeg-cvslog] configure: add -Wstrict-prototypes when available
Ganesh Ajjanagadde
git at videolan.org
Fri Oct 23 14:48:05 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Thu Oct 22 14:37:31 2015 -0400| [e6a93e59adeea1c140f2ef63e4055a15823bfeda] | committer: Ganesh Ajjanagadde
configure: add -Wstrict-prototypes when available
GCC (and Clang) have this useful warning that is not enabled by -Wall or
-Wextra. This will ensure that issues like those fixed in
4da52e3630343e8d3a79aef2cafcb6bf0b71e8da
will trigger warnings.
Reviewed-by: Hendrik Leppkes <h.leppkes at gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6a93e59adeea1c140f2ef63e4055a15823bfeda
---
configure | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure b/configure
index a38b290..276ec30 100755
--- a/configure
+++ b/configure
@@ -5637,6 +5637,7 @@ disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -
enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
# add some useful compiler flags if supported
+check_cflags -Wstrict-prototypes
check_cflags -Wdeclaration-after-statement
check_cflags -Wall
check_cflags -Wdisabled-optimization
More information about the ffmpeg-cvslog
mailing list