提交 dcd3eda6 编写于 作者: L Luca Barbato

configure: Move gcc-only -W option where it belongs

上级 cd43ca04
...@@ -3907,7 +3907,6 @@ check_cflags -Wundef ...@@ -3907,7 +3907,6 @@ check_cflags -Wundef
check_cflags -Wmissing-prototypes check_cflags -Wmissing-prototypes
check_cflags -Wstrict-prototypes check_cflags -Wstrict-prototypes
enabled extra_warnings && check_cflags -Winline enabled extra_warnings && check_cflags -Winline
enabled extra_warnings || check_cflags -Wno-maybe-uninitialized
# add some linker flags # add some linker flags
check_ldflags -Wl,--warn-common check_ldflags -Wl,--warn-common
...@@ -3999,6 +3998,7 @@ elif enabled gcc; then ...@@ -3999,6 +3998,7 @@ elif enabled gcc; then
check_cflags -Werror=return-type check_cflags -Werror=return-type
check_cflags -Werror=declaration-after-statement check_cflags -Werror=declaration-after-statement
check_cflags -Werror=vla check_cflags -Werror=vla
enabled extra_warnings || check_cflags -Wno-maybe-uninitialized
elif enabled llvm_gcc; then elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16 check_cflags -mllvm -stack-alignment=16
elif enabled clang; then elif enabled clang; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册