From 2a13575e8ac66a9bf9001d2434978d3269f14f00 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 14 Jun 1995 17:39:03 -0400 Subject: [PATCH] (format_char_info, case 'm'): Set type to void. (check_format_info): If type is void, ignore operand. From-SVN: r9954 --- gcc/c-common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.30.2