* misc.c (gnat_handle_option): Fix warnings.

From-SVN: r67821
This commit is contained in:
Neil Booth 2003-06-12 05:47:04 +00:00 committed by Neil Booth
parent 8cdea5a125
commit 70fd65692d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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>
* Make-lang.in (gnatbind): Remove $(LIBIBERTY).

View File

@ -237,6 +237,9 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
switch (code)
{
default:
return 0;
case OPT_I:
q = xmalloc (sizeof("-I") + strlen (arg));
strcpy (q, "-I");
@ -246,7 +249,7 @@ gnat_handle_option (size_t scode, const char *arg, int value ATTRIBUTE_UNUSED)
break;
case OPT_fRTS:
gnat_argv[gnat_argc] = "-fRTS";
gnat_argv[gnat_argc] = xstrdup ("-fRTS");
gnat_argc++;
break;