[FFmpeg-cvslog] configure: Make warnings from -Wreturn-type fatal errors

Diego Biurrun git at videolan.org
Tue Jan 15 15:30:18 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Jan 14 20:38:33 2013 +0100| [99853cb8d4237b810b2fffb4a34f66fd0064ef72] | committer: Diego Biurrun

configure: Make warnings from -Wreturn-type fatal errors

These warnings have no false positives and point to serious bugs.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=99853cb8d4237b810b2fffb4a34f66fd0064ef72
---

 configure |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index 3d5fe7c..375865e 100755
--- a/configure
+++ b/configure
@@ -3684,6 +3684,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=declaration-after-statement
     check_cflags -Werror=vla
 elif enabled llvm_gcc; then
@@ -3693,6 +3694,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



More information about the ffmpeg-cvslog mailing list