diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-12-01 22:43:33 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-12-01 22:43:33 +0000 |
commit | 4d80892796677b2beaf9d47d80e337b315395582 (patch) | |
tree | bdb5953541ec233f2de9b035d07dd0cc7f8757c2 /libjava/java/text/ChoiceFormat.java | |
parent | e78f4a977a1f0f802035fd473d64659d4f48a8ab (diff) | |
download | gcc-4d80892796677b2beaf9d47d80e337b315395582.zip gcc-4d80892796677b2beaf9d47d80e337b315395582.tar.gz gcc-4d80892796677b2beaf9d47d80e337b315395582.tar.bz2 |
c-common.c (warn_format, [...]): Define.
* c-common.c (warn_format, warn_format_y2k,
warn_format_extra_args, warn_format_nonliteral): Define.
(check_format_info): Check warn_format_nonliteral and
warn_format_extra_args.
(check_format_info_main): Check warn_format_y2k.
(set_Wformat): New function.
* c-common.h (warn_format_y2k, warn_format_extra_args,
warn_format_nonliteral, set_Wformat): Declare.
* c-decl.c (warn_format): Remove definition.
(c_decode_option): Handle -Wformat-nonliteral,
-Wno-format-extra-args and -Wno-format-y2k, and negated versions.
Use set_Wformat.
* invoke.texi: Document these new options and -Wformat=2.
* toplev.c (documented_lang_options): Add these new options.
cp:
* decl2.c (warn_format): Remove definition.
(lang_decode_option): Handle -Wformat-nonliteral,
-Wno-format-extra-args and -Wno-format-y2k. Use set_Wformat.
testsuite:
* gcc.dg/format-no-exargs-1.c, gcc.dg/format-no-y2k-1.c,
gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: New tests.
From-SVN: r37933
Diffstat (limited to 'libjava/java/text/ChoiceFormat.java')
0 files changed, 0 insertions, 0 deletions