From f1338a2dcb4f4cb805b853965c513bfaf5a71ff9 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 1 Dec 2017 15:10:16 +0000 Subject: [PATCH] Use const char* to fix -Wwrite-strings warning * include/ext/ropeimpl.h (rope::_S_dump): Use const char*. From-SVN: r255316 --- libstdc++-v3/ChangeLog | 2 ++ libstdc++-v3/include/ext/ropeimpl.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4de8cc731b6..053611ed283 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2017-12-01 Jonathan Wakely + * include/ext/ropeimpl.h (rope::_S_dump): Use const char*. + * libsupc++/nested_exception.h (__throw_with_nested_impl): Add noreturn attribute. diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h index 9e88ce14c18..4842034c1e8 100644 --- a/libstdc++-v3/include/ext/ropeimpl.h +++ b/libstdc++-v3/include/ext/ropeimpl.h @@ -1139,7 +1139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - char* __kind; + const char* __kind; switch (__r->_M_tag) { -- 2.30.2