From: Prathamesh Kulkarni Date: Mon, 18 Jun 2018 14:04:37 +0000 (+0000) Subject: tree.c (escaped_string::escape): Replace cast to char * by const_cast (unesca... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f9bda14580c475eabae3b82f96041932e2e6402;p=gcc.git tree.c (escaped_string::escape): Replace cast to char * by const_cast (unescaped). 2018-06-18 Prathamesh Kulkarni * tree.c (escaped_string::escape): Replace cast to char * by const_cast (unescaped). From-SVN: r261700 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4134a2ca716..56401fbf9b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-06-18 Prathamesh Kulkarni + + * tree.c (escaped_string::escape): Replace cast to char * by + const_cast (unescaped). + 2018-06-18 Nick Clifton PR 84195 diff --git a/gcc/tree.c b/gcc/tree.c index 6728f1c2ce6..889d88c50b4 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -12454,7 +12454,7 @@ escaped_string::escape (const char *unescaped) if (m_owned) free (m_str); - m_str = (char *) unescaped; + m_str = const_cast (unescaped); m_owned = false; if (unescaped == NULL || *unescaped == 0)