On Sat, 18 Jun 2011 00:42:30 EDT, Ted Unangst wrote:
lint does not understand the %m format, leading to false positives. The
too few format args is one of the important ones, IMO, so we should try to
make it accurate.
That seems reasonable but I think you want to treat %m like %%.
That way
lint does not understand the %m format, leading to false positives. The
too few format args is one of the important ones, IMO, so we should try to
make it accurate.
The diff below teaches lint that %m does not consume arguments.
Index: lint2/chk.c