objc-next-runtime-abi-02.c (newabi_append_ro): Add const qualifier to constant variab...
authorToon Moene <toon@moene.org>
Fri, 13 May 2011 07:47:42 +0000 (07:47 +0000)
committerToon Moene <toon@gcc.gnu.org>
Fri, 13 May 2011 07:47:42 +0000 (07:47 +0000)
2011-05-13  Toon Moene  <toon@moene.org>

* objc-next-runtime-abi-02.c (newabi_append_ro):
Add const qualifier to constant variable pointer declaration.

From-SVN: r173723

gcc/objc/ChangeLog
gcc/objc/objc-next-runtime-abi-02.c

index 363e61166833fa194a629cd34fe8b73778515975..949b92d2c36bcaeed5503e4702d19c3b103e134b 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-13  Toon Moene  <toon@moene.org>
+
+       * objc-next-runtime-abi-02.c (newabi_append_ro):
+       Add const qualifier to constant variable pointer declaration.
+
 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
 
        * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Use proper accessors.
index 3d889b0a1166b310139ba3d28e0095e712af0a2d..fd9bb9923deb2cc57a290ed7b0a1eb7f176e6256 100644 (file)
@@ -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, '$');