]> git.sesse.net Git - ffmpeg/commitdiff
build: Add -Wpedantic and -Wextra to extra warning flags
authorDiego Biurrun <diego@biurrun.de>
Mon, 16 Mar 2015 18:21:14 +0000 (19:21 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sat, 3 Dec 2016 07:00:33 +0000 (08:00 +0100)
Also drop -Winline from set of warning flags as it only produces noise.

configure

index d1fffbce8c89cd74248884fd79da74c69953ee11..983d56bbf72d299f24fa4b9d9fd777d7d2536914 100755 (executable)
--- 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-}