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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)spell.c 3.5 2006/05/17 */
|
||||
/* SCCS Id: @(#)spell.c 3.5 2006/06/25 */
|
||||
/* Copyright (c) M. Stephenson 1988 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -325,7 +325,7 @@ raise_dead:
|
||||
}
|
||||
|
||||
STATIC_PTR int
|
||||
learn()
|
||||
learn(VOID_ARGS)
|
||||
{
|
||||
int i;
|
||||
short booktype;
|
||||
|
||||
Reference in New Issue
Block a user