Subject: Re: bin/1089: cc -ansi -pedantic doesn't notice %qd
To: None <netbsd-bugs@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: netbsd-bugs
Date: 05/30/1995 14:49:03
> >Number: 1089
> >Category: bin
> >Synopsis: cc -ansi -pedantic doesn't notice %qd
Make that cc -ansi -pedantic -Wformat (blush!)....
> >Fix:
> Apply the following in gnu/usr.bin/gcc2/cc1. (As of this
> writing, I have not tested this; I'm doing that, but rebuilding
> the relevant fraction of gcc is taking a long time. And the
> change is small and well-isolated, so I don't expect trouble.)
The rebuild finished sooner than I expected. I am now in a position to
say that with one minor tweak, the patch works. The tweak is the \n
has to be removed from the argument in the call to pedwarn(). (Also,
the how-to-repeat command should include -Wformat, as I indicated
above.)
der Mouse
mouse@collatz.mcrcim.mcgill.edu