Commit db9369bb by John David Anglin Committed by John David Anglin

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

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

From-SVN: r150092
parent 2df77822
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.
2009-07-25 David Daney <ddaney@caviumnetworks.com>
* system.h (gcc_assert): Invoke __builtin_unreachable() instead of
......
......@@ -2271,7 +2271,7 @@ scan_libraries (const char *prog_name)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment