This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Fix -Wmissing-format-attribute warnings


Hello!

This patch removes all -Wmissing-format-attribute warnings on
alphaev68-pc-linux-gnu native build.

gcc/ChangeLog:

2012-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* collect2.c (collect_execute): Add format strint to fatal_error call.
	* dwarf2asm.c (dw2_asm_output_vms_delta): Add format string to
	dw2_asm_output_delta call.
	* dwarf2out.c (output_die): Add format string to
	dw2_asm_output_data call.
	* tree-ssa-uninit.c (dump_predicates): Add format string to
	fprintf call.
	* fold-const.c (fold_overflow_warning): Add format string to
	warning call.
	* gcc.c (execute): Add format string to fatal_error call.
	* lto-wrapper.c (collect_execute): Add format strings to
	fatal_perror and fatal calls.
	* opts.c (print_filtered_help): Add format strings to snprintf calls.
	* tree-sra.c (dump_dereferences_table): Add format string to
	fprintf call.
	* tree-ssa-uninit.c (dump_predicates): Ditto.

gcc/c-family/ChangeLog:

2012-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* c-common.c (c_parse_error): Add format string to error calls.

gcc/c/ChangeLog:

2012-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* c-typeck.c (convert_arguments): Add format string to error call.
	(error_init): Ditto.
	(build_unary_op): Add format string to error_at call.
	(build_binary_op): Ditto.
	(pedwarn_init): Add format string to pedwarn call.
	(warning_init): Add format string to warning call.
	* c-decl.c (grokdeclarator): Add format string to error call.
	(grokparms): Ditto.

gcc/cp/ChangeLog:

2012-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* typeck.c (cp_build_binary_op): Add format string to error call.
	(cp_build_unary_op): Ditto.
	* decl.c (grokdeclarator): Add format string to error call.
	(grokparms): Ditto.
	* pt.c (tsubst_copy_and_build): Ditto.
	* parser.c (cp_parser_check_type_definition): Ditto.
	* cvt.c (ocp_convert): Ditto.

Tested on alphaev68-pc-linux-gnu and x86_64-pc-linux-gnu.

OK for mainline?

Uros.

Attachment: s.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]