Commit 99853cb8 authored by Diego Biurrun's avatar Diego Biurrun

configure: Make warnings from -Wreturn-type fatal errors

These warnings have no false positives and point to serious bugs.
parent 51969a65
...@@ -3684,6 +3684,7 @@ elif enabled gcc; then ...@@ -3684,6 +3684,7 @@ elif enabled gcc; then
check_optflags -fno-tree-vectorize check_optflags -fno-tree-vectorize
check_cflags -Werror=implicit-function-declaration check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes check_cflags -Werror=missing-prototypes
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
elif enabled llvm_gcc; then elif enabled llvm_gcc; then
...@@ -3693,6 +3694,7 @@ elif enabled clang; then ...@@ -3693,6 +3694,7 @@ elif enabled clang; then
check_cflags -Qunused-arguments check_cflags -Qunused-arguments
check_cflags -Werror=implicit-function-declaration check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes check_cflags -Werror=missing-prototypes
check_cflags -Werror=return-type
elif enabled armcc; then elif enabled armcc; then
# 2523: use of inline assembler is deprecated # 2523: use of inline assembler is deprecated
add_cflags -W${armcc_opt},--diag_suppress=2523 add_cflags -W${armcc_opt},--diag_suppress=2523
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment