[Bug c/65446] Improve -Wformat-signedness

2016-06-09 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/65446] Improve -Wformat-signedness

2016-06-09 Thread rnsanchez at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 Ricardo Nabinger Sanchez changed: What|Removed |Added CC||rnsanchez at gmail dot com --

[Bug c/65446] Improve -Wformat-signedness

2015-05-21 Thread eblake at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 --- Comment #4 from Eric Blake --- Arguably, "%u" with short should warn, while "%hu" with short should not. On the other hand, if I use "%hu" with int, it is unclear to me whether I should get a warning (the fact that I'm using %h to intentiona

[Bug c/65446] Improve -Wformat-signedness

2015-05-21 Thread eblake at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 --- Comment #3 from Eric Blake --- see also bug 66249 where the implementation-defined signedness of enums comes into play, and where I argue that neither %d nor %u should warn when an enum type is passed through varargs where the range of the en

[Bug c/65446] Improve -Wformat-signedness

2015-05-21 Thread eblake at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 Eric Blake changed: What|Removed |Added CC||eblake at redhat dot com --- Comment #2 fro

[Bug c/65446] Improve -Wformat-signedness

2015-03-17 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65446 --- Comment #1 from Tobias Burnus --- (In reply to Tobias Burnus from comment #0) > It doesn't warn but should warn for >printf("%u\n", _short); Actually, it (correctly) does warn in this case (as short it promoted to int, which is also unsi