[Box Backup-commit] COMMIT r3632 - box/trunk/infrastructure/m4

subversion at boxbackup.org subversion at boxbackup.org
Sat Aug 29 09:45:54 BST 2015


Author: chris
Date: 2015-08-29 08:45:54 +0000 (Sat, 29 Aug 2015)
New Revision: 3632

Modified:
   box/trunk/infrastructure/m4/boxbackup_tests.m4
Log:
Make wrong return type an error, not a warning.

We should never fail to return something from a non-void function.

Modified: box/trunk/infrastructure/m4/boxbackup_tests.m4
===================================================================
--- box/trunk/infrastructure/m4/boxbackup_tests.m4	2015-08-23 16:42:18 UTC (rev 3631)
+++ box/trunk/infrastructure/m4/boxbackup_tests.m4	2015-08-29 08:45:54 UTC (rev 3632)
@@ -12,7 +12,7 @@
 
 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.




More information about the Boxbackup-commit mailing list