mirror of git://gcc.gnu.org/git/gcc.git
builtin-sprintf-warn-1.c: Cast 0 to wint_t to placate -Wformat on targets where the type is not int.
gcc/testsuite/Changelog: * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Cast 0 to wint_t to placate -Wformat on targets where the type is not int. From-SVN: r241123
This commit is contained in:
parent
0c0d2a4cf0
commit
5b1548fd79
|
|
@ -1,3 +1,8 @@
|
||||||
|
2016-10-13 Martin Sebor <msebor@redhat.com>
|
||||||
|
|
||||||
|
* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Cast 0 to wint_t
|
||||||
|
to placate -Wformat on targets where the type is not int.
|
||||||
|
|
||||||
2016-10-13 David Malcolm <dmalcolm@redhat.com>
|
2016-10-13 David Malcolm <dmalcolm@redhat.com>
|
||||||
|
|
||||||
* gcc.target/i386/vararg-loc.c: Update for quoting of xloc.file
|
* gcc.target/i386/vararg-loc.c: Update for quoting of xloc.file
|
||||||
|
|
|
||||||
|
|
@ -1293,9 +1293,9 @@ void test_snprintf_chk_c_const (void)
|
||||||
T (3, "%c_%c", '1', '2'); /* { dg-warning "output truncated" } */
|
T (3, "%c_%c", '1', '2'); /* { dg-warning "output truncated" } */
|
||||||
|
|
||||||
/* Wide characters. */
|
/* Wide characters. */
|
||||||
T (0, "%lc", 0);
|
T (0, "%lc", (wint_t)0);
|
||||||
T (1, "%lc", 0);
|
T (1, "%lc", (wint_t)0);
|
||||||
T (2, "%lc", 0);
|
T (2, "%lc", (wint_t)0);
|
||||||
|
|
||||||
/* The following could result in as few as a single byte and in as many
|
/* The following could result in as few as a single byte and in as many
|
||||||
as MB_CUR_MAX, but since the MB_CUR_MAX value is a runtime property
|
as MB_CUR_MAX, but since the MB_CUR_MAX value is a runtime property
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue