aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-04-08 15:00:25 +0200
committerClément Bœsch <u@pkh.me>2017-04-08 15:00:25 +0200
commit3d0475ef387f2b9eec3692f28fc27e8b038001d6 (patch)
treeeec05e9bb45ce5d0c2c884a6355288f953692997
parentec10c543b8b53fe6232511d214b17b48de0e9533 (diff)
parent984e50e74ba71301720652e56232161a994bd0b5 (diff)
downloadffmpeg-3d0475ef387f2b9eec3692f28fc27e8b038001d6.tar.gz
Merge commit '984e50e74ba71301720652e56232161a994bd0b5'
* commit '984e50e74ba71301720652e56232161a994bd0b5': build: Add -Wpedantic and -Wextra to extra warning flags Merged-by: Clément Bœsch <u@pkh.me>
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 3936202430..b2232117d8 100755
--- a/configure
+++ b/configure
@@ -6125,8 +6125,12 @@ check_cflags -Wmissing-prototypes
check_cflags -Wno-pointer-to-int-cast
check_cflags -Wstrict-prototypes
check_cflags -Wempty-body
-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-}