configure,cmake: remove -Wdeclaration-after-statement
this was superseded by the addition of -std=c99
BUG=aomedia:111
Change-Id: Ib89125b6f2e259b52ae35af26e882f9b02ef2c27
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
index 8fc44c2..b2770d9 100644
--- a/build/cmake/aom_configure.cmake
+++ b/build/cmake/aom_configure.cmake
@@ -40,7 +40,6 @@
message(FATAL_ERROR "C99 support by the compiler is required!")
endif ()
add_compiler_flag_if_supported("-Wall")
- add_compiler_flag_if_supported("-Wdeclaration-after-statement")
add_compiler_flag_if_supported("-Wdisabled-optimization")
add_compiler_flag_if_supported("-Wextra")
add_compiler_flag_if_supported("-Wfloat-conversion")
diff --git a/configure b/configure
index 9829c72..0bb3e5d 100755
--- a/configure
+++ b/configure
@@ -644,7 +644,6 @@
if enabled gcc; then
enabled werror && check_add_cflags -Werror
check_add_cflags -Wall
- check_add_cflags -Wdeclaration-after-statement
check_add_cflags -Wdisabled-optimization
check_add_cflags -Wfloat-conversion
check_add_cflags -Wpointer-arith