From: Jonathan Wakely Date: Fri, 1 Dec 2017 15:10:16 +0000 (+0000) Subject: Use const char* to fix -Wwrite-strings warning X-Git-Tag: basepoints/gcc-9~2930 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1338a2dcb4f4cb805b853965c513bfaf5a71ff9;p=thirdparty%2Fgcc.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 4de8cc731b6f..053611ed2838 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 9e88ce14c181..4842034c1e83 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) {