[FFmpeg-cvslog] build: Add -Wpedantic and -Wextra to extra warning flags
Diego Biurrun
git at videolan.org
Sat Apr 8 16:01:12 EEST 2017
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Mar 16 19:21:14 2015 +0100| [984e50e74ba71301720652e56232161a994bd0b5] | committer: Diego Biurrun
build: Add -Wpedantic and -Wextra to extra warning flags
Also drop -Winline from set of warning flags as it only produces noise.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=984e50e74ba71301720652e56232161a994bd0b5
---
configure | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index d1fffbc..983d56b 100755
--- a/configure
+++ b/configure
@@ -4834,8 +4834,12 @@ check_cflags -Wtype-limits
check_cflags -Wundef
check_cflags -Wmissing-prototypes
check_cflags -Wstrict-prototypes
-enabled extra_warnings && check_cflags -Winline
-enabled extra_warnings && check_cflags -Wcast-qual
+
+if enabled extra_warnings; then
+ check_cflags -Wcast-qual
+ check_cflags -Wextra
+ check_cflags -Wpedantic
+fi
check_disable_warning(){
warning_flag=-W${1#-Wno-}
More information about the ffmpeg-cvslog
mailing list