summaryrefslogtreecommitdiff
path: root/infrastructure
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-08-29 08:45:54 +0000
committerChris Wilson <chris+github@qwirx.com>2015-08-29 08:45:54 +0000
commitd3f3dfaf37bcfe3d7c07db1f38e8a8487a9d1e0f (patch)
tree0f49ac309b1eebfd5a506ee516f54b22e2460c00 /infrastructure
parenta64856f1d5dd14fb47de8e745c4e5c1979bedb49 (diff)
Make wrong return type an error, not a warning.
We should never fail to return something from a non-void function.
Diffstat (limited to 'infrastructure')
-rw-r--r--infrastructure/m4/boxbackup_tests.m42
1 files changed, 1 insertions, 1 deletions
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.