[cpp-sp] branch master updated: CPPXT-121 Add strict overflow checking

Rod Widdowson rdw at steadingsoftware.com
Thu Aug 3 11:39:45 EDT 2017


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=adf9bc97958a43806e189dd028bf0ba2c93bb1d3

The following commit(s) were added to refs/heads/master by this push:
       new  adf9bc9   CPPXT-121 Add strict overflow checking
adf9bc9 is described below

commit adf9bc97958a43806e189dd028bf0ba2c93bb1d3
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Aug 3 16:37:22 2017 +0100

    CPPXT-121 Add strict overflow checking
    
    https://issues.shibboleth.net/jira/browse/CPPXT-121
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 563b254..035a267 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,11 +24,11 @@ AC_ARG_ENABLE(debug,
     enable_debug=$enableval, enable_debug=no)
 
 if test "$enable_debug" = "yes" ; then
-    GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
-    GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
+    GCC_CFLAGS="$CFLAGS -g -D_DEBUG -Wstrict-overflow=5"
+    GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG -Wstrict-overflow=5"
 else
-    GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
-    GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
+    GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG -Wstrict-overflow=5"
+    GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG -Wstrict-overflow=5"
 fi
 
 AC_CONFIG_HEADERS([config.h shibsp/config_pub.h])

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list