$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r53105 - in trunk: boost libs/array/test
From: steven_at_[hidden]
Date: 2009-05-18 23:00:53
Author: steven_watanabe
Date: 2009-05-18 23:00:53 EDT (Mon, 18 May 2009)
New Revision: 53105
URL: http://svn.boost.org/trac/boost/changeset/53105
Log:
Supress warnings in array
Text files modified: 
   trunk/boost/array.hpp            |    10 +++++-----                              
   trunk/libs/array/test/array3.cpp |     2 +-                                      
   trunk/libs/array/test/array5.cpp |     2 +-                                      
   3 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/boost/array.hpp
==============================================================================
--- trunk/boost/array.hpp	(original)
+++ trunk/boost/array.hpp	2009-05-18 23:00:53 EDT (Mon, 18 May 2009)
@@ -211,19 +211,19 @@
         }
 
         // operator[]
-        reference operator[](size_type i)
+        reference operator[](size_type /*i*/)
         {
             return failed_rangecheck();
         }
 
-        const_reference operator[](size_type i) const
+        const_reference operator[](size_type /*i*/) const
         {
             return failed_rangecheck();
         }
 
         // at() with range check
-        reference at(size_type i)               {   return failed_rangecheck(); }
-        const_reference at(size_type i) const   {   return failed_rangecheck(); }
+        reference at(size_type /*i*/)               {   return failed_rangecheck(); }
+        const_reference at(size_type /*i*/) const   {   return failed_rangecheck(); }
 
         // front() and back()
         reference front()
@@ -252,7 +252,7 @@
         static size_type max_size() { return 0; }
         enum { static_size = 0 };
 
-        void swap (array<T,0>& y) {
+        void swap (array<T,0>& /*y*/) {
         }
 
         // direct access to data (read-only)
Modified: trunk/libs/array/test/array3.cpp
==============================================================================
--- trunk/libs/array/test/array3.cpp	(original)
+++ trunk/libs/array/test/array3.cpp	2009-05-18 23:00:53 EDT (Mon, 18 May 2009)
@@ -21,7 +21,7 @@
 
     // copy and change order
     boost::array<std::string,4> seasons_orig = seasons;
-    for (unsigned i=seasons.size()-1; i>0; --i) {
+    for (std::size_t i=seasons.size()-1; i>0; --i) {
         std::swap(seasons.at(i),seasons.at((i+1)%seasons.size()));
     }
 
Modified: trunk/libs/array/test/array5.cpp
==============================================================================
--- trunk/libs/array/test/array5.cpp	(original)
+++ trunk/libs/array/test/array5.cpp	2009-05-18 23:00:53 EDT (Mon, 18 May 2009)
@@ -27,7 +27,7 @@
     typedef boost::array<float,6> Array;
 
     // create and initialize an array
-    const Array a = { { 42.42 } };
+    const Array a = { { 42.42f } };
 
     // use some common STL container operations
     std::cout << "static_size: " << a.size() << std::endl;