Use const char* to fix -Wwrite-strings warning
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Dec 2017 15:10:16 +0000 (15:10 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Dec 2017 15:10:16 +0000 (15:10 +0000)
* include/ext/ropeimpl.h (rope::_S_dump): Use const char*.

From-SVN: r255316

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/ropeimpl.h

index 4de8cc731b6fbe9a929e44c8e906ac8e65d6dc2e..053611ed2838cd22ae1f4093b2fb79a8acf286d0 100644 (file)
@@ -1,5 +1,7 @@
 2017-12-01  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/ext/ropeimpl.h (rope::_S_dump): Use const char*.
+
        * libsupc++/nested_exception.h (__throw_with_nested_impl): Add
        noreturn attribute.
 
index 9e88ce14c181f6e299bfac94bef423aa570ab012..4842034c1e832013ec145a6ab01625fde108bf98 100644 (file)
@@ -1139,7 +1139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
        }
       else
        {
-         char* __kind;
+         const char* __kind;
          
          switch (__r->_M_tag)
            {