This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


[ 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 ?

--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
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, '$');

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]