r259807 - in /trunk/gcc: c-family/ChangeLog c-f...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Tue May 1 18:51:00 GMT 2018


Author: dmalcolm
Date: Tue May  1 18:51:15 2018
New Revision: 259807

URL: https://gcc.gnu.org/viewcvs?rev=259807&root=gcc&view=rev
Log:
-Wformat: fix nonsensical "wide character" message (PR c/84258)

gcc/c-family/ChangeLog:
	PR c/84258
	* c-format.c (struct format_check_results): Add field
	"number_non_char".
	(check_format_info): Initialize it, and warn if encountered.
	(check_format_arg): Distinguish between wide char and
	everything else when detecting arrays of non-char.

gcc/testsuite/ChangeLog:
	PR c/84258
	* c-c++-common/Wformat-pr84258.c: New test.


Added:
    trunk/gcc/testsuite/c-c++-common/Wformat-pr84258.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-format.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list