$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r69082 - sandbox/bitfield/libs/bitfield/test
From: vicente.botet_at_[hidden]
Date: 2011-02-20 11:45:34
Author: viboes
Date: 2011-02-20 11:45:32 EST (Sun, 20 Feb 2011)
New Revision: 69082
URL: http://svn.boost.org/trac/boost/changeset/69082
Log:
Bitfield: warning cleanup
Text files modified: 
   sandbox/bitfield/libs/bitfield/test/Jamfile.v2                      |    36 ++++++++++++++++++++----------------    
   sandbox/bitfield/libs/bitfield/test/bitfield_test.cpp               |    16 ++++++++--------                        
   sandbox/bitfield/libs/bitfield/test/pointer_plus_small_int_test.cpp |     2 +-                                      
   3 files changed, 29 insertions(+), 25 deletions(-)
Modified: sandbox/bitfield/libs/bitfield/test/Jamfile.v2
==============================================================================
--- sandbox/bitfield/libs/bitfield/test/Jamfile.v2	(original)
+++ sandbox/bitfield/libs/bitfield/test/Jamfile.v2	2011-02-20 11:45:32 EST (Sun, 20 Feb 2011)
@@ -17,27 +17,31 @@
 
 project :
     : requirements
-        <include>../../..
-        <include>$(BOOST_ROOT)
-        <include>/sandbox/endian
-        
-#       <threading>multi
-#       <target-os>cygwin
-#       <threadapi>pthread
-#       <variant>debug
-        
-        #<library>/boost/test//boost_unit_test_framework/<link>static
-        
-#        <library>/boost/test///boost_unit_test_framework/<link>static
-#        <library>/sandbox/libs/endia/build//boost_endian/<link>static
-      
+        #<include>$(BOOST_ROOT)
+
+        <warnings>all
+        <toolset>gcc:<cxxflags>-Wextra
+        <toolset>gcc:<cxxflags>-pedantic
+        <toolset>gcc:<cxxflags>-Wno-long-long
+        <toolset>darwin:<cxxflags>-Wextra
+        <toolset>darwin:<cxxflags>-pedantic
+        <toolset>darwin:<cxxflags>-Wno-long-long
+        #<toolset>pathscale:<cxxflags>-Wextra
+        <toolset>pathscale:<cxxflags>-Wno-long-long
+        <toolset>pathscale:<cxxflags>-pedantic
+        <toolset>clang:<cxxflags>-Wextra
+        <toolset>clang:<cxxflags>-pedantic
+        <toolset>clang:<cxxflags>-Wno-long-long
+        <toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
+        <toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
+
 ;
 
 
 
-     
+
 test-suite "bitfield" :
      [ run bitfield_test.cpp ]
      #[ run pointer_plus_small_int_test.cpp ]
-    ; 
+    ;
 
Modified: sandbox/bitfield/libs/bitfield/test/bitfield_test.cpp
==============================================================================
--- sandbox/bitfield/libs/bitfield/test/bitfield_test.cpp	(original)
+++ sandbox/bitfield/libs/bitfield/test/bitfield_test.cpp	2011-02-20 11:45:32 EST (Sun, 20 Feb 2011)
@@ -27,7 +27,7 @@
         uint16_t padd;
         STR value;
    } s, sl;
-   
+
    typedef boost::integer::bitfield_traits<T, 0, 2, uint8_t>    f_type;
    typedef boost::integer::bitfield_traits<T, 3, 11>    m_type;
    typedef boost::integer::bitfield_traits<T, 12, 15, uint32_t>    l_type;
@@ -77,11 +77,11 @@
         uint32_t padd;
         STR value;
    } s, sl;
-   
+
    BOOST_BITFIELD_DCL(uint32_t, word, unsigned char, f, 0, 2);
    BOOST_BITFIELD_DCL(uint32_t, word, uint32_t, m, 3, 11);
    BOOST_BITFIELD_DCL(uint32_t, word, uint32_t, l, 12, 15);
-   
+
    typedef boost::integer::bitfield_traits<T, 0, 7>   high_type;
    typedef boost::integer::bitfield_traits<T, 4, 11>   mid_type; // Intentionally overlap
    typedef boost::integer::bitfield_traits<T, 8, 15>    low_type;
@@ -167,13 +167,13 @@
 void test_flags()
 {
 
-   
+
    typedef uint16_t T;
-   ASSERT_EQUALS((boost::integer::bitfield_value_to_stprage<boost::integer::bitfield<T, 8, 15>, 0x12>::value), 0x0012);
+   ASSERT_EQUALS((boost::integer::bitfield_value_to_storage<boost::integer::bitfield<T, 8, 15>, 0x12>::value), 0x0012);
    ASSERT_EQUALS((boost::integer::bitfield<T, 8, 15>::get_flags(0x12)), 0x0012);
-   ASSERT_EQUALS((boost::integer::bitfield_value_to_stprage<boost::integer::bitfield<T, 4, 11>, 0x34>::value), 0x0340);
+   ASSERT_EQUALS((boost::integer::bitfield_value_to_storage<boost::integer::bitfield<T, 4, 11>, 0x34>::value), 0x0340);
    ASSERT_EQUALS((boost::integer::bitfield<T, 4, 11>::get_flags(0x34)), 0x0340);
-   ASSERT_EQUALS((boost::integer::bitfield_value_to_stprage<boost::integer::bitfield<T, 0, 7>, 0x56>::value), 0x5600);
+   ASSERT_EQUALS((boost::integer::bitfield_value_to_storage<boost::integer::bitfield<T, 0, 7>, 0x56>::value), 0x5600);
    ASSERT_EQUALS((boost::integer::bitfield<T, 0, 7>::get_flags(0x56)), 0x5600);
    ASSERT_EQUALS((boost::integer::bitfield<T, 0, 15>::get_flags(0xabcd)), 0xabcd);
    ASSERT_EQUALS((boost::integer::bitfield<T, 4, 4>::get_flags(0)), 0);
@@ -299,7 +299,7 @@
 }
 
 //-----------------------------------------------------------------------------
-int main(int argc, char *argv[])
+int main()
 {
     test_tt();
     test_assign();
Modified: sandbox/bitfield/libs/bitfield/test/pointer_plus_small_int_test.cpp
==============================================================================
--- sandbox/bitfield/libs/bitfield/test/pointer_plus_small_int_test.cpp	(original)
+++ sandbox/bitfield/libs/bitfield/test/pointer_plus_small_int_test.cpp	2011-02-20 11:45:32 EST (Sun, 20 Feb 2011)
@@ -64,7 +64,7 @@
 #endif
 
 //-----------------------------------------------------------------------------
-int main(int argc, char *argv[])
+int main()
 {
     test_tt();
     test_tt2();