Warning 4550 messages during compile

Frequently asked question — SMAUG server

Question

When I compile the SMAUG server I get lots of warning 4550 messages, like this:

tables.c
c:\source\smaug1.4a\src\tables.c(70) : warning C4550: expression evaluates to a function which is missing an argument list
c:\source\smaug1.4a\src\tables.c(71) : warning C4550: expression evaluates to a function which is missing an argument list
c:\source\smaug1.4a\src\tables.c(72) : warning C4550: expression evaluates to a function which is missing an argument list
c:\source\smaug1.4a\src\tables.c(73) : warning C4550: expression evaluates to a function which is missing an argument list
c:\source\smaug1.4a\src\tables.c(74) : warning C4550: expression evaluates to a function which is missing an argument list
c:\source\smaug1.4a\src\tables.c(75) : warning C4550: expression evaluates to a function which is missing an argument list

Answer

Near the start (eg. after the #includes) of files special.c and tables.c add the following lines, to eliminate the many warnings about 4550. They are harmless however.


#ifdef WIN32
#pragma warning(disable: 4550)
#endif