Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-01-14 23:38:33 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-02-25 07:49:46 +0400
commit02f241d1ed10cdd2c8d304d306e71a1a0d79cec3 (patch)
tree66b45fa693f551df8bf4e9493df1ded6fb62e055
parentcc64871bd86b027813e5da97fdf4556e9534b1e2 (diff)
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 b67affdc5d..71396b2e72 100755
--- a/configure
+++ b/configure
@@ -3893,11 +3893,13 @@ elif enabled gcc; then
check_cflags -fno-tree-vectorize
check_cflags -Werror=implicit-function-declaration
check_cflags -Werror=missing-prototypes
+ check_cflags -Werror=return-type
elif enabled llvm_gcc; then
check_cflags -mllvm -stack-alignment=16
elif enabled clang; then
check_cflags -mllvm -stack-alignment=16
check_cflags -Qunused-arguments
+ check_cflags -Werror=return-type
elif enabled armcc; then
# 2523: use of inline assembler is deprecated
add_cflags -W${armcc_opt},--diag_suppress=2523