remove format checking

This commit is contained in:
YamaArashi 2016-04-29 05:24:01 -07:00
parent 4bd39ff94b
commit fb026be50e
4 changed files with 1 additions and 1061 deletions

File diff suppressed because it is too large Load Diff

View File

@ -543,10 +543,6 @@ int warn_redundant_decls = 0;
int warn_nested_externs = 0;
/* Warn about *printf or *scanf format/argument anomalies. */
int warn_format;
/* Warn about a subscript that has type char. */
int warn_char_subscripts = 0;
@ -761,10 +757,6 @@ c_decode_option (p)
warn_traditional = 1;
else if (!strcmp (p, "-Wno-traditional"))
warn_traditional = 0;
else if (!strcmp (p, "-Wformat"))
warn_format = 1;
else if (!strcmp (p, "-Wno-format"))
warn_format = 0;
else if (!strcmp (p, "-Wchar-subscripts"))
warn_char_subscripts = 1;
else if (!strcmp (p, "-Wno-char-subscripts"))
@ -805,7 +797,6 @@ c_decode_option (p)
warn_return_type = 1;
warn_unused = 1;
warn_switch = 1;
warn_format = 1;
warn_char_subscripts = 1;
warn_parentheses = 1;
warn_missing_braces = 1;
@ -3485,9 +3476,6 @@ init_decl_processing ()
start_identifier_warnings ();
/* Prepare to check format strings against argument lists. */
init_function_format_info ();
init_iterators ();
incomplete_decl_finalize_hook = finish_incomplete_decl;

View File

@ -167,8 +167,6 @@ extern void gen_aux_info_record (tree, int, int, int);
/* in c-common.c */
extern void declare_function_name (void);
extern void decl_attributes (tree, tree, tree);
extern void init_function_format_info (void);
extern void check_function_format (tree, tree, tree);
extern int c_get_alias_set (tree);
extern void c_apply_type_quals_to_decl (int, tree);
/* Print an error message for invalid operands to arith operation CODE.
@ -478,10 +476,6 @@ extern int warn_missing_noreturn;
extern int warn_traditional;
/* Warn about *printf or *scanf format/argument anomalies. */
extern int warn_format;
/* Warn about a subscript that has type char. */
extern int warn_char_subscripts;

View File

@ -1560,11 +1560,6 @@ build_function_call (function, params)
coerced_params
= convert_arguments (TYPE_ARG_TYPES (fntype), params, name, fundecl);
/* Check for errors in format strings. */
if (warn_format && (name || assembler_name))
check_function_format (name, assembler_name, coerced_params);
/* Recognize certain built-in functions so we can make tree-codes
other than CALL_EXPR. We do this when it enables fold-const.c
to do something useful. */