From: Jonathan Wakely Date: Fri, 1 Dec 2017 15:10:16 +0000 (+0000) Subject: Use const char* to fix -Wwrite-strings warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1338a2dcb4f4cb805b853965c513bfaf5a71ff9;p=gcc.git Use const char* to fix -Wwrite-strings warning * include/ext/ropeimpl.h (rope::_S_dump): Use const char*. From-SVN: r255316 --- 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) {