Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57720 - trunk/libs/functional/hash/test
From: daniel_james_at_[hidden]
Date: 2009-11-16 18:56:57


Author: danieljames
Date: 2009-11-16 18:56:56 EST (Mon, 16 Nov 2009)
New Revision: 57720
URL: http://svn.boost.org/trac/boost/changeset/57720

Log:
Turn on warnings as errors for the hash tests.
Text files modified:
   trunk/libs/functional/hash/test/Jamfile.v2 | 3 +++
   trunk/libs/functional/hash/test/hash_complex_test.cpp | 8 ++++++--
   2 files changed, 9 insertions(+), 2 deletions(-)

Modified: trunk/libs/functional/hash/test/Jamfile.v2
==============================================================================
--- trunk/libs/functional/hash/test/Jamfile.v2 (original)
+++ trunk/libs/functional/hash/test/Jamfile.v2 2009-11-16 18:56:56 EST (Mon, 16 Nov 2009)
@@ -14,6 +14,9 @@
         <toolset>darwin:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter"
         <toolset>gcc:<define>_GLIBCXX_DEBUG
         <toolset>darwin:<define>_GLIBCXX_DEBUG
+ <toolset>msvc:<warnings-as-errors>on
+ <toolset>gcc:<warnings-as-errors>on
+ <toolset>darwin:<warnings-as-errors>on
     ;
 
 test-suite functional/hash

Modified: trunk/libs/functional/hash/test/hash_complex_test.cpp
==============================================================================
--- trunk/libs/functional/hash/test/hash_complex_test.cpp (original)
+++ trunk/libs/functional/hash/test/hash_complex_test.cpp 2009-11-16 18:56:56 EST (Mon, 16 Nov 2009)
@@ -80,13 +80,17 @@
 
 int main()
 {
+ // I've comments out the short and unsigned short tests
+ // as they cause warnings and don't really test
+ // anything that the other tests already deal with.
+
     complex_float_tests((float*) 0);
     complex_float_tests((double*) 0);
     complex_float_tests((long double*) 0);
- complex_integral_tests((short*) 0);
+ //complex_integral_tests((short*) 0);
     complex_integral_tests((int*) 0);
     complex_integral_tests((long*) 0);
- complex_integral_tests((unsigned short*) 0);
+ //complex_integral_tests((unsigned short*) 0);
     complex_integral_tests((unsigned int*) 0);
     complex_integral_tests((unsigned long*) 0);
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk