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:56:54 +0100
commit3f785a538b4b45f64282fd44bcee57b83f5eb878 (patch)
tree7df03e63889aab473faa2db8d1ed6e10b24c01a2
parenta77cf47d887a01567ae4d5327cba2886ea929e43 (diff)
downloadffmpeg-3f785a538b4b45f64282fd44bcee57b83f5eb878.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 9587c88169..9d30ed92a8 100755
--- a/configure
+++ b/configure
@@ -2796,8 +2796,10 @@ elif enabled gcc; then
check_cflags -fno-tree-vectorize
check_cflags -Werror=implicit
check_cflags -Werror=missing-prototypes
+ check_cflags -Werror=return-type
elif enabled clang; then
check_cflags -Qunused-arguments
+ check_cflags -Werror=return-type
elif enabled armcc; then
# 2523: use of inline assembler is deprecated
add_cflags -Wrvct,--diag_suppress=2523