A five character qualifier saves the C++ build ...

Submitted by Toon Moene on May 12, 2011, 8:33 p.m.

Details

Message ID 4DCC4400.3020303@moene.org
State New
Headers show

Commit Message

Toon Moene May 12, 2011, 8:33 p.m.
[ Strong Typing Is For People With Weak Memories ]

The attached patch fixes the C++ (--disable-werror) bootstrap:

2011-05-12  Toon Moene  <toon@moene.org>

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

Apply as obvious ?

Comments

Mike Stump May 12, 2011, 9:03 p.m.
On May 12, 2011, at 1:33 PM, Toon Moene wrote:
> [ Strong Typing Is For People With Weak Memories ]

:-)

> 2011-05-12  Toon Moene  <toon@moene.org>
> 
> 	* objc-next-runtime-abi-02.c (objc_build_internal_classname):
> 	Add const qualifier to constant variable pointer declaration.

> Apply as obvious ?

Yes, it was obvious...

Ok.

Patch hide | download patch | download mbox

Index: objc-next-runtime-abi-02.c
===================================================================
--- objc-next-runtime-abi-02.c	(revision 173710)
+++ objc-next-runtime-abi-02.c	(working copy)
@@ -1879,7 +1879,7 @@  objc_build_internal_classname (tree ident, bool me
 static const char *
 newabi_append_ro (const char *name)
 {
-  char *dollar;
+  const char *dollar;
   char *p;
   static char string[BUFSIZE];
   dollar = strchr (name, '$');