J. Bruce Fields wrote: > On Fri, Jul 27, 2007 at 03:48:06PM -0400, Chuck Lever wrote: >> Hi all- >> >> It would be nice to enable more static code checking in nfs-utils (I'm >> especially interested in utils/mount/). Is there a clean way to add >> additional CFLAGS, like -Wall, to utils/mount/Makefile using the autotools >> set up? How about a lint or sparse target? > > I don't know, sounds like a good idea. So far, "CFLAGS=-Wall -O2 -g ./configure" enables full warnings everywhere in the tree, but I haven't found anything on how to specify additional CFLAGS in one subdir, and have it happen automatically. > Last I checked, though, I thought there were still a fair number of > warnings just with the current defaults. Maybe we should fix those up > first? I'm focusing on utils/mount at the moment, and that seems pretty clean with the present C flags. I have noticed warnings in other parts of the tree, but haven't had time to poke at them.