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:
parent
daa1fb34df
commit
8f90d7b078
2
gnu/dist/toolchain/gcc/c-common.c
vendored
2
gnu/dist/toolchain/gcc/c-common.c
vendored
@ -1432,8 +1432,6 @@ check_format_info (info, params)
|
||||
{
|
||||
if (format_chars - TREE_STRING_POINTER (format_tree) != format_length)
|
||||
warning ("embedded `\\0' in format");
|
||||
if (info->first_arg_num != 0 && params != 0 && ! has_operand_number)
|
||||
warning ("too many arguments for format");
|
||||
return;
|
||||
}
|
||||
if (*format_chars++ != '%')
|
||||
|
Loading…
Reference in New Issue
Block a user