diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-12-01 15:10:16 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-12-01 15:10:16 +0000 |
commit | f1338a2dcb4f4cb805b853965c513bfaf5a71ff9 (patch) | |
tree | c280107c46a883eb5ad7f9c6c590bc4aa7e831e8 /libstdc++-v3 | |
parent | c85d1992085c61f60c74d43a41619a83fba221b5 (diff) | |
download | gcc-f1338a2dcb4f4cb805b853965c513bfaf5a71ff9.zip gcc-f1338a2dcb4f4cb805b853965c513bfaf5a71ff9.tar.gz gcc-f1338a2dcb4f4cb805b853965c513bfaf5a71ff9.tar.bz2 |
Use const char* to fix -Wwrite-strings warning
* include/ext/ropeimpl.h (rope::_S_dump): Use const char*.
From-SVN: r255316
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 2 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/ropeimpl.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4de8cc7..053611e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/ext/ropeimpl.h b/libstdc++-v3/include/ext/ropeimpl.h index 9e88ce1..4842034c 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) { |