aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-01-14 20:38:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-19 00:52:44 +0100
commit7acfa7758c7f655119a7cf972b9c4cc74de75161 (patch)
treebe7e4fa90863d1c010ea8014ced1d5bd0c945c3e
parent56b6909b395e4d54a356a0274a5e4cba79bab33b (diff)
downloadffmpeg-7acfa7758c7f655119a7cf972b9c4cc74de75161.tar.gz
configure: Make warnings from -Wreturn-type fatal errors
These warnings have no false positives and point to serious bugs. (cherry picked from commit 99853cb8d4237b810b2fffb4a34f66fd0064ef72) Conflicts: configure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 0707a940c4..ffa032f637 100755
--- a/configure
+++ b/configure
@@ -4094,6 +4094,7 @@ elif enabled gcc; then
check_optflags -fno-tree-vectorize
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
+ check_cflags -Werror=return-type
check_cflags -Werror=vla
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
@@ -4102,6 +4103,7 @@ elif enabled clang; then
check_cflags -Qunused-arguments
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
+ check_cflags -Werror=return-type
elif enabled armcc; then
# 2523: use of inline assembler is deprecated
add_cflags -W${armcc_opt},--diag_suppress=2523