Skip to content

Commit

Permalink
Use const char* to fix -Wwrite-strings warning
Browse files Browse the repository at this point in the history
	* include/ext/ropeimpl.h (rope::_S_dump): Use const char*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255316 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
redi committed Dec 1, 2017
1 parent ddbe62d commit 747afe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libstdc++-v3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2017-12-01 Jonathan Wakely <[email protected]>

* include/ext/ropeimpl.h (rope::_S_dump): Use const char*.

* libsupc++/nested_exception.h (__throw_with_nested_impl): Add
noreturn attribute.

Expand Down
2 changes: 1 addition & 1 deletion libstdc++-v3/include/ext/ropeimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
}
else
{
char* __kind;
const char* __kind;

switch (__r->_M_tag)
{
Expand Down

0 comments on commit 747afe8

Please sign in to comment.