diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-06-14 21:39:03 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-06-14 21:39:03 +0000 |
commit | 2a2878919d13b697a42ca675c2832808a0b02ef8 (patch) | |
tree | ed00c894ce0a17f9855049fe6f5926c781465bf4 /gcc | |
parent | 1f9c4532bf50ae4918da4007ea8c9c6b76928166 (diff) | |
download | gcc-2a2878919d13b697a42ca675c2832808a0b02ef8.tar.gz |
(format_char_info, case 'm'): Set type to void.
(check_format_info): If type is void, ignore operand.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9954 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 0491952eacc..fad2701b78b 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -693,7 +693,7 @@ static format_char_info print_char_table[] = { { "u", 0, T_UI, T_UI, T_UL, T_ULL, T_ULL, "-wp0" }, /* Two GNU extensions. */ { "Z", 0, T_ST, NULL, NULL, NULL, NULL, "-wp0" }, - { "m", 0, T_UI, T_UI, T_UL, NULL, NULL, "-wp" }, + { "m", 0, T_V, NULL, NULL, NULL, NULL, "-wp" }, { "feEgG", 0, T_D, NULL, NULL, NULL, T_LD, "-wp0 +#" }, { "c", 0, T_I, NULL, T_W, NULL, NULL, "-w" }, { "C", 0, T_W, NULL, NULL, NULL, NULL, "-w" }, @@ -1194,6 +1194,9 @@ check_format_info (info, params) /* Finally. . .check type of argument against desired type! */ if (info->first_arg_num == 0) continue; + if (fci->pointer_count == 0 && wanted_type == void_type_node) + /* This specifier takes no argument. */ + continue; if (params == 0) { warning (tfaff); |