]> granicus.if.org Git - nethack/commit
some lint cleanup
authornethack.rankin <nethack.rankin>
Tue, 21 Oct 2003 05:59:33 +0000 (05:59 +0000)
committernethack.rankin <nethack.rankin>
Tue, 21 Oct 2003 05:59:33 +0000 (05:59 +0000)
commit08639fdda850485f651b5987e3163564d1e1d07c
tree1e46ae0a4c6321401ad51c23c1871d1fd94ec3e9
parent15bd245d2bbaa20db4e2a04a2381b08b97a929ef
some lint cleanup

     Using
gcc -Wall -Wshadow -Wpointer-arith -Wwrite-strings \
    -Wmissing-braces -Wmissing-prototypes
with an old version of gcc.

mhitu.c: In function `hitmu':
mhitu.c:1176: warning: declaration of `buf' shadows previous local
options.c: In function `special_handling':
options.c:2712: warning: initialization discards `const' from pointer target type
options.c:2745: warning: initialization discards `const' from pointer target typ
trap.c: In function `dotrap':
trap.c:1111: warning: `saddle' might be used uninitialized in this function

The first one is no longer present in the trunk code.  The last one is
bogus as its wishy-washy wording suggests.
src/options.c
src/trap.c