From d3f3dfaf37bcfe3d7c07db1f38e8a8487a9d1e0f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 29 Aug 2015 08:45:54 +0000 Subject: Make wrong return type an error, not a warning. We should never fail to return something from a non-void function. --- infrastructure/m4/boxbackup_tests.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/m4/boxbackup_tests.m4 b/infrastructure/m4/boxbackup_tests.m4 index 50ccd80d..091eb67f 100644 --- a/infrastructure/m4/boxbackup_tests.m4 +++ b/infrastructure/m4/boxbackup_tests.m4 @@ -12,7 +12,7 @@ esac if test "x$GXX" = "xyes"; then # Use -Wall if we have gcc. This gives better warnings - AC_SUBST([CXXFLAGS_STRICT], ['-Wall -Wundef']) + AC_SUBST([CXXFLAGS_STRICT], ['-Wall -Wundef -Werror=return-type']) # Don't check for gcc -rdynamic on Solaris as it's broken, but returns 0. # On Cygwin it does nothing except cause gcc to emit a warning message. -- cgit v1.2.3