]> granicus.if.org Git - nethack/commit
warning bit
authorPatR <rankin@nethack.org>
Fri, 18 Dec 2015 15:18:58 +0000 (07:18 -0800)
committerPatR <rankin@nethack.org>
Fri, 18 Dec 2015 15:18:58 +0000 (07:18 -0800)
commitc097814f3c662ff9fe16c56b05f5f5bbbadeb00e
tree6f8af6a113817a463431d250f08d763716e3ed4a
parentfcc30bee8846f64223debc96194114102896a64a
warning bit

Suppress a couple of 'dead increment' diagnostics from the clang static
analyzer.  The assignments are dead, but keeping the variable up to date
is more valuable (in case someone someday changes the code to use the
affected variable somewhere farther along in that function) than changing
the code to avoid the assignments in order to prevent the diagnostic.

This will only work to suppress the analyzer's diagnostic messages if
either FORCE_ARG_USAGE or GCC_WARN is defined when compiling makemon.c.
src/makemon.c