[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-08-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 --- Comment #6 from Eric Gallager --- (In reply to Eric Gallager from comment #5) > (In reply to Nick Desaulniers from comment #4) > > Thanks for the feedback, in https://reviews.llvm.org/rL369791, Nathan made > > [unsigned] char -> [unsigned]sho

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-08-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 --- Comment #5 from Eric Gallager --- (In reply to Nick Desaulniers from comment #4) > Thanks for the feedback, in https://reviews.llvm.org/rL369791, Nathan made > [unsigned] char -> [unsigned]short warn only for -Wformat-pedantic, not > -Wformat

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-08-23 Thread ndesaulniers at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 Nick Desaulniers changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-08-06 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 --- Comment #3 from joseph at codesourcery dot com --- There is a known ambiguity in the standard requirements where the argument has the correct promoted type but not the expected type before promotion. I wrote up some notes on this some time

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-07-18 Thread ndesaulniers at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 --- Comment #2 from Nick Desaulniers --- Ah, I did file a bug for this in LLVM's issue tracker: https://bugs.llvm.org/show_bug.cgi?id=41467

[Bug c/91206] -Wformat doesn't warn for %hd with char parameter

2019-07-18 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91206 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew Pi