]> granicus.if.org Git - nethack/commit
function pointer assignment warnings in VC2005
authornethack.allison <nethack.allison>
Sun, 25 Jun 2006 19:54:31 +0000 (19:54 +0000)
committernethack.allison <nethack.allison>
Sun, 25 Jun 2006 19:54:31 +0000 (19:54 +0000)
commitd09c37423959274c02a3abc0f1ac3ba7c7348ce5
treebedcc7061f6b8322f27834024fad3e3b0b80ea3e
parentc3745836326a1867537786733584de262378d1de
function pointer assignment warnings in VC2005

The latest Micrsoft compilers complain when a function is
assigned to a function pointer, and the function's argument
list does not match the prototype precisely.
It was evem complaining about the difference between this:
     int x()
     {
        [...]
     }
and a prototype of
     int x(void);
when assigning that function's address to a function pointer.

This quiets those warnings, without suppressing the mismatch
check altogether for more serious mismatches.
include/global.h
src/botl.c
src/cmd.c
src/dig.c
src/dlb.c
src/do.c
src/do_wear.c
src/eat.c
src/lock.c
src/spell.c
src/steal.c