News for hackers. Stuff that matters.
Re:Stanford Compilers Course by cardiffspaceman on Tuesday November 21, 2017 @01:24AM (#15746065)
GCC does catch problems with printf arguments vs the format string and it has mechanisms for defining functions that take the same format strings. I operate at a high enough warning level that I see this type of warning now and then.

TL;DR: the compiler DOES have that special logic.

Re:Stanford Compilers Course by rifung on Tuesday November 21, 2017 @03:29AM (#15746562)
Ah interesting to know that GCC does this! I figured there would be compilers which did this but I sadly didn't have any examples.

> the compiler DOES have that special logic.

Indeed it being a controversial decision does not imply that no compilers would do it; if anything it implies that there should be some compilers which make that choice.