]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* include/bits/functexcept.h (__throw_out_of_range_fmt): Change
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 15:44:17 +0000 (15:44 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jun 2014 15:44:17 +0000 (15:44 +0000)
attribute to __gnu_printf__ archetype to prevent warnings for "%zu".
* include/bits/locale_facets_nonio.tcc (time_get::do_get_weekday):
Remove unused typedef.
(time_get::do_get_monthname): Likewise.
* include/bits/stl_tree.h: Add system_header pragma.
* include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): Remove
redundant const-qualifier.
* include/std/complex (complex::__rep): Use _GLIBCXX_CONSTEXPR macro
instead of _GLIBCXX_USE_CONSTEXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211951 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/functexcept.h
libstdc++-v3/include/bits/locale_facets_nonio.tcc
libstdc++-v3/include/bits/stl_tree.h
libstdc++-v3/include/ext/stdio_sync_filebuf.h
libstdc++-v3/include/std/complex

index d3c01f55d9afb2d100777d28e7c3d54958adc676..864f7b219e64e2cfd1f7328b64aae612b5c5e553 100644 (file)
@@ -1,3 +1,16 @@
+2014-06-24  Jonathan Wakely  <jwakely@redhat.com>
+
+       * include/bits/functexcept.h (__throw_out_of_range_fmt): Change
+       attribute to __gnu_printf__ archetype to prevent warnings for "%zu".
+       * include/bits/locale_facets_nonio.tcc (time_get::do_get_weekday):
+       Remove unused typedef.
+       (time_get::do_get_monthname): Likewise.
+       * include/bits/stl_tree.h: Add system_header pragma.
+       * include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): Remove
+       redundant const-qualifier.
+       * include/std/complex (complex::__rep): Use _GLIBCXX_CONSTEXPR macro
+       instead of _GLIBCXX_USE_CONSTEXPR.
+
 2014-06-23  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/parse_numbers.h (_Number_help): Fix divide-by-zero.
index b8359f91f57c759d5bee3fb5c5c7abcf6b39a397..48be255a8e18b84ecf863a0208df38e61169ed25 100644 (file)
@@ -76,7 +76,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   void
   __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__))
-    __attribute__((__format__(__printf__, 1, 2)));
+    __attribute__((__format__(__gnu_printf__, 1, 2)));
 
   void
   __throw_runtime_error(const char*) __attribute__((__noreturn__));
index 41d944d3e7d783b32cbad3fa784fe2bf95e0e7d2..c9f8dac1d1d6a14ad71ae37ce1323e52a42f19c0 100644 (file)
@@ -1064,7 +1064,6 @@ _GLIBCXX_END_NAMESPACE_LDBL
     do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io,
                   ios_base::iostate& __err, tm* __tm) const
     {
-      typedef char_traits<_CharT>              __traits_type;
       const locale& __loc = __io._M_getloc();
       const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
       const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
@@ -1092,7 +1091,6 @@ _GLIBCXX_END_NAMESPACE_LDBL
     do_get_monthname(iter_type __beg, iter_type __end,
                      ios_base& __io, ios_base::iostate& __err, tm* __tm) const
     {
-      typedef char_traits<_CharT>              __traits_type;
       const locale& __loc = __io._M_getloc();
       const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc);
       const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc);
index ce43ab846862f9576ffaad8a6452dc6f8fb0be37..cc9bf9442eabdb9f1cc15d2c6717427cf5b2a195 100644 (file)
@@ -58,6 +58,8 @@
 #ifndef _STL_TREE_H
 #define _STL_TREE_H 1
 
+#pragma GCC system_header
+
 #include <bits/stl_algobase.h>
 #include <bits/allocator.h>
 #include <bits/stl_function.h>
index 5ca16ebac46a03dbefd72bdcb115af74cad5dfee..73283a74b9f203ade2a7271b0083aff8f36d56b3 100644 (file)
@@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        *  Note that there is no way for the library to track what you do
        *  with the file, so be careful.
        */
-      std::__c_file* const
+      std::__c_file*
       file() { return this->_M_file; }
 
     protected:
index 5849cd5e80615b77e7f3bc64fbd514c3c3b14812..1ae6c4580c7a69d32e6f240d82d6f13835dd5158 100644 (file)
@@ -217,7 +217,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       template<typename _Up>
         complex<_Tp>& operator/=(const complex<_Up>&);
 
-      _GLIBCXX_USE_CONSTEXPR complex __rep() const
+      _GLIBCXX_CONSTEXPR complex __rep() const
       { return *this; }
 
     private:
@@ -1180,7 +1180,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          return *this;
        }
 
-      _GLIBCXX_USE_CONSTEXPR _ComplexT __rep() const { return _M_value; }
+      _GLIBCXX_CONSTEXPR _ComplexT __rep() const { return _M_value; }
 
     private:
       _ComplexT _M_value;
@@ -1330,7 +1330,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          return *this;
        }
 
-      _GLIBCXX_USE_CONSTEXPR _ComplexT __rep() const { return _M_value; }
+      _GLIBCXX_CONSTEXPR _ComplexT __rep() const { return _M_value; }
 
     private:
       _ComplexT _M_value;
@@ -1482,7 +1482,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
          return *this;
        }
 
-      _GLIBCXX_USE_CONSTEXPR _ComplexT __rep() const { return _M_value; }
+      _GLIBCXX_CONSTEXPR _ComplexT __rep() const { return _M_value; }
 
     private:
       _ComplexT _M_value;