Remove the "too many arguments for format" warning until the next major

release of gcc, which handles this more cleanly.
This commit is contained in:
tv 2001-01-31 19:55:23 +00:00
parent daa1fb34df
commit 8f90d7b078

View File

@ -1432,8 +1432,6 @@ check_format_info (info, params)
{ {
if (format_chars - TREE_STRING_POINTER (format_tree) != format_length) if (format_chars - TREE_STRING_POINTER (format_tree) != format_length)
warning ("embedded `\\0' in format"); warning ("embedded `\\0' in format");
if (info->first_arg_num != 0 && params != 0 && ! has_operand_number)
warning ("too many arguments for format");
return; return;
} }
if (*format_chars++ != '%') if (*format_chars++ != '%')