[Bug middle-end/85139] [8 Regression] Spurious format truncation warning

2018-04-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85139 --- Comment #2 from Martin Sebor --- To avoid the warning, cast the argument of the %04X directive to unsigned short: snprintf(s, sizeof(s), "usb:v%04Xp%04X*", (unsigned short)vn, (unsigned short)pn); (Note that even though casting an int to

[Bug middle-end/85139] [8 Regression] Spurious format truncation warning

2018-04-03 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85139 Richard Biener changed: What|Removed |Added Target|aarch64-bec-linux |aarch64-bec-linux, |

[Bug middle-end/85139] [8 Regression] Spurious format truncation warning

2018-03-31 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85139 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Component|c