diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-11-04 04:57:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-11-04 04:57:33 +0000 |
commit | b7436b7288b074c505c7efd6be8740dfab471995 (patch) | |
tree | cf40e4641c23b927eab437ca1b6fad40488aed6d /gcc/java/jcf-io.c | |
parent | 0160fbe1508e18e4ff7b50822b3620f69cffe400 (diff) | |
download | gcc-b7436b7288b074c505c7efd6be8740dfab471995.zip gcc-b7436b7288b074c505c7efd6be8740dfab471995.tar.gz gcc-b7436b7288b074c505c7efd6be8740dfab471995.tar.bz2 |
lang-options.h: Mention -Wout-of-date.
* lang-options.h: Mention -Wout-of-date.
* jcf-dump.c (flag_newer): New global.
* gjavah.c (flag_newer): New global.
* jcf-io.c (find_class): Only warn when flag_newer set.
* lang.c (flag_newer): New global.
(struct string_option): New declaration.
(lang_W_options): New global.
(process_option_with_no): New function.
(lang_decode_option): Use it.
From-SVN: r37244
Diffstat (limited to 'gcc/java/jcf-io.c')
-rw-r--r-- | gcc/java/jcf-io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/jcf-io.c b/gcc/java/jcf-io.c index 7bd4fe8..db19208 100644 --- a/gcc/java/jcf-io.c +++ b/gcc/java/jcf-io.c @@ -403,7 +403,8 @@ DEFUN(find_class, (classname, classname_length, jcf, source_ok), i--; stripped_class_name [i] = '\0'; - warning ("Source file for class `%s' is newer than its matching class file. Source file used instead", stripped_class_name); + if (flag_newer) + warning ("Source file for class `%s' is newer than its matching class file. Source file used instead", stripped_class_name); free (stripped_class_name); class = -1; } |