[c/c++] Alias Wmissing-format-attribute to Wsuggest-attribute=format

Manuel López-Ibáñez lopezibanez@gmail.com
Sun Apr 29 09:28:00 GMT 2012


Since Wsuggest-attribute=[pure|const|noreturn] was introduced, it
makes sense to have Wsuggest-attribute=format. This patch makes this
the canonical form of Wmissing-format-attribute (the old form is still
accepted and documented).

Bootstrapped and regression tested.

OK?


2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>

gcc/
	* doc/invoke.texi (Wmissing-format-attribute): Document as an
	alias of Wsuggest-attribute=format.
c-family/
	* c.opt (Wsuggest-attribute=format): New. Alias of
	Wmissing-format-attribute.
	* c-format.c (decode_format_type): Replace
	Wmissing-format-attribute with Wsuggest-attribute=format.
	(check_function_format): Likewise.
cp/
	* typeck.c (convert_for_assignment):  Replace
	Wmissing-format-attribute with Wsuggest-attribute=format.
	* call.c (convert_for_arg_passing): Likewise.
gcc/
	* c-typeck.c (convert_for_assignment): Replace
	Wmissing-format-attribute with Wsuggest-attribute=format.
	(digest_init): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Wsuggest-attribute.diff
Type: application/octet-stream
Size: 13278 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120429/7ed6d36b/attachment.obj>


More information about the Gcc-patches mailing list