From e6e9475b4b3a3da6502e5481d91d40f9cb7b6dbb Mon Sep 17 00:00:00 2001 From: Toon Moene Date: Fri, 13 May 2011 07:47:42 +0000 Subject: [PATCH] objc-next-runtime-abi-02.c (newabi_append_ro): Add const qualifier to constant variable pointer declaration. 2011-05-13 Toon Moene * objc-next-runtime-abi-02.c (newabi_append_ro): Add const qualifier to constant variable pointer declaration. From-SVN: r173723 --- gcc/objc/ChangeLog | 5 +++++ gcc/objc/objc-next-runtime-abi-02.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 363e6116683..949b92d2c36 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-13 Toon Moene + + * objc-next-runtime-abi-02.c (newabi_append_ro): + Add const qualifier to constant variable pointer declaration. + 2011-05-11 Nathan Froyd * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors. diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c index 3d889b0a116..fd9bb9923de 100644 --- a/gcc/objc/objc-next-runtime-abi-02.c +++ b/gcc/objc/objc-next-runtime-abi-02.c @@ -1879,7 +1879,7 @@ objc_build_internal_classname (tree ident, bool metaclass) static const char * newabi_append_ro (const char *name) { - char *dollar; + const char *dollar; char *p; static char string[BUFSIZE]; dollar = strchr (name, '$'); -- 2.30.2