aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-11-02 12:16:00 +0100
committerDiego Biurrun <diego@biurrun.de>2013-11-05 12:22:48 +0100
commit92352a94c1658eb0b246b984a569b310816e759f (patch)
tree71c3e14d956657218ca0f8863d9b2d4e9f624bb8
parent7d1a68e95baf232e1c3ee93ee3285f4b309d77ce (diff)
downloadffmpeg-92352a94c1658eb0b246b984a569b310816e759f.tar.gz
configure: Move -Wno-maybe-uninitialized check into gcc section
As another example of bizarre compiler behavior clang groks the -Wmaybe-uninitialized option, but not -Wno-maybe-uninitialized and spews a warning for every file that gets compiled.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 4aa66c09cf..b83f9a3777 100755
--- a/configure
+++ b/configure
@@ -3924,7 +3924,6 @@ check_disable_warning -Wno-parentheses
check_disable_warning -Wno-switch
check_disable_warning -Wno-format-zero-length
check_disable_warning -Wno-pointer-sign
-enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
# add some linker flags
check_ldflags -Wl,--warn-common
@@ -4016,6 +4015,7 @@ elif enabled gcc; then
check_cflags -Werror=return-type
check_cflags -Werror=declaration-after-statement
check_cflags -Werror=vla
+ enabled extra_warnings || check_disable_warning -Wno-maybe-uninitialized
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
elif enabled clang; then