Commit 70fd6569 by Neil Booth Committed by Neil Booth

* misc.c (gnat_handle_option): Fix warnings.

From-SVN: r67821
parent 8cdea5a1
2003-06-12 Neil Booth <neil@daikokuya.co.uk>
* misc.c (gnat_handle_option): Fix warnings.
2003-06-11 Matt Kraai <kraai@alumni.cmu.edu> 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
* Make-lang.in (gnatbind): Remove $(LIBIBERTY). * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
......
...@@ -237,6 +237,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED) ...@@ -237,6 +237,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
switch (code) switch (code)
{ {
default:
return 0;
case OPT_I: case OPT_I:
q = xmalloc (sizeof("-I") + strlen (arg)); q = xmalloc (sizeof("-I") + strlen (arg));
strcpy (q, "-I"); strcpy (q, "-I");
...@@ -246,7 +249,7 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED) ...@@ -246,7 +249,7 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
break; break;
case OPT_fRTS: case OPT_fRTS:
gnat_argv[gnat_argc] = "-fRTS"; gnat_argv[gnat_argc] = xstrdup ("-fRTS");
gnat_argc++; gnat_argc++;
break; break;
......
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