]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
std_bitset.h (_M_do_find_next): Fix -Wall nit.
authorLoren J. Rittle <ljrittle@acm.org>
Tue, 15 Apr 2003 06:11:10 +0000 (06:11 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Tue, 15 Apr 2003 06:11:10 +0000 (06:11 +0000)
* include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
* include/bits/concept_check.h: Fix multi-line comment.
* testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
when target is *-*-freebsd*.

From-SVN: r65620

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/concept_check.h
libstdc++-v3/include/std/std_bitset.h
libstdc++-v3/testsuite/17_intro/headers.cc

index a6dc0f1ceb407081d3a3ee4e600701ddb6e8e035..9d14062f988decea9d90ae8ba082deaada07d69c 100644 (file)
@@ -2,6 +2,11 @@
 
        * testsuite/26_numerics/c99_classification_macros_c.cc: Add XFAIL.
 
+       * include/std/std_bitset.h (_M_do_find_next): Fix -Wall nit.
+       * include/bits/concept_check.h: Fix multi-line comment.
+       * testsuite/17_intro/headers.cc (dg-options): Add -Wall -Wsystem-header
+       when target is *-*-freebsd*.
+
 2003-04-14  Nathan Myers  <ncm@cantrip.org>
             Paolo Carlini  <pcarlini@unitus.it>
 
index 92ceefbd685e0d55bf3dab8bfea7730fed318451..88877ebf57e4d1780d4749375cae9c179db25e35 100644 (file)
@@ -61,8 +61,7 @@
 
 // Note that the obvious and elegant approach of
 //
-//#define glibcpp_function_requires(C)      \
-//            boost::function_requires< boost::C >()
+//#define glibcpp_function_requires(C) boost::function_requires< boost::C >()
 //
 // won't work due to concept templates with more than one parameter, e.g.,
 // BinaryPredicateConcept.  The preprocessor tries to split things up on
index f390ce66c88113a3e70c4b3c0bb49bdb07cbd81e..c6e993a3e79ee9c4c5107783b9c837a08a508099 100644 (file)
@@ -414,7 +414,7 @@ namespace std
       _M_do_find_next(size_t __prev, size_t __not_found) const
       {
        ++__prev;
-       if (__prev >= _GLIBCPP_BITSET_BITS_PER_WORD)
+       if (__prev >= ((size_t) _GLIBCPP_BITSET_BITS_PER_WORD))
          return __not_found;
 
        _WordT __x = _M_w >> __prev;
index eb930f1ff00211f0299c61a9e6bc6d564944bb0d..4694079ed2973cddcd8fcf25570324821e363c7d 100644 (file)
@@ -18,6 +18,9 @@
 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 // USA.
 
+// FreeBSD wants warning clean system headers:
+// { dg-options "-Wall -Wsystem-headers" { target *-*-freebsd* } }
+
 // 17.4.1.2 Headers