This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix compilation error in collect2.c on hppa1.1-hp-hpux10.20
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Jul 2009 20:08:24 -0400 (EDT)
- Subject: [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;