* Al Viro <viro@ZenIV.linux.org.uk> wrote:well, gcc does not "recover", we _gave_ it the format string as a constant, and do so in 99.9% of the cases. It is a totally well-specified thing. so yes, this warning is bogus. You are right that passing in a non-constant string to printf is inherently dangerous though, and i'd suggest we warn about _that_ very prominently. but the constant noise from gcc about printf formats, where the conversion is very clear and could be done implicitly, only hinders us and only teaches people to _ignore_ gcc warnings - which is actually very dangerous. the only warning from gcc in this area should be where the format results in information _loss_ (i.e. the format has a narrower type than we pass into it) - there a warning is very much needed - and the programmer should then fix the bug or add a cast. Ingo --
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Nigel Cunningham | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Paul Mundt | Re: 2.6.22-rc4-mm2 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
