diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-12 05:47:04 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-12 05:47:04 +0000 |
commit | fb3b06a1b253c9df3ea23ef43cba3e8943f9063f (patch) | |
tree | 43cdbb2b1584c2c3685b9be0dc121834f94b581c /gcc/ada | |
parent | 907823bafa677aea9528804ec655d6425528d82c (diff) | |
download | gcc-fb3b06a1b253c9df3ea23ef43cba3e8943f9063f.tar.gz |
* misc.c (gnat_handle_option): Fix warnings.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67821 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ada/misc.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 6d70d9d8917..524ffabbfd1 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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). diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c index 0919ae1dd0e..88dd1ec99d6 100644 --- a/gcc/ada/misc.c +++ b/gcc/ada/misc.c @@ -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; |