From patchwork Thu May 12 20:33:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: A five character qualifier saves the C++ build ... Date: Thu, 12 May 2011 10:33:04 -0000 From: Toon Moene X-Patchwork-Id: 95358 Message-Id: <4DCC4400.3020303@moene.org> To: "gcc-patches@gcc.gnu.org" [ Strong Typing Is For People With Weak Memories ] The attached patch fixes the C++ (--disable-werror) bootstrap: 2011-05-12 Toon Moene * objc-next-runtime-abi-02.c (objc_build_internal_classname): Add const qualifier to constant variable pointer declaration. Apply as obvious ? 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, '$');