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]

[committed] Fix compilation error in collect2.c on hppa1.1-hp-hpux10.20


The following fixes a compilation warning from collect2.c on
hppa1.1-hp-hpux10.20.  Committed as obvious as the change is
similar to other recent changes to the file.

Tested on hppa1.1-hp-hpux10.20.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
	const char ** conversion.

Index: collect2.c
===================================================================
--- collect2.c	(revision 149246)
+++ collect2.c	(working copy)
@@ -2271,7 +2271,7 @@
   void (*quit_handler) (int);
 #endif
   char *real_ldd_argv[4];
-  const char **ldd_argv = (const char **) real_ldd_argv;
+  const char **ldd_argv = CONST_CAST2 (const char **, char **, real_ldd_argv);
   int argc = 0;
   struct pex_obj *pex;
   const char *errmsg;


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