Added 'linty' target for make

"make linty" does lots of error checking while compiling.
Simplified the standard make's CFLAGS.
Cleaned up code to eliminate resulting warnings generated by "make linty".
This commit is contained in:
Bob Little 2017-06-17 20:43:19 -04:00 committed by Eric S. Raymond
parent d92da99106
commit d844c2a391
6 changed files with 20 additions and 19 deletions

4
main.c
View file

@ -913,7 +913,7 @@ static void listobjects(void)
static bool do_command(FILE *cmdin)
/* Get and execute a command */
{
long verb, V1, V2;
long verb=0, V1, V2;
long kmod, defn;
static long igo = 0;
static long obj = 0;
@ -950,7 +950,7 @@ static bool do_command(FILE *cmdin)
for (;;) {
if (game.loc == 0)
croak(cmdin);
char* msg = locations[game.loc].description.small;
const char* msg = locations[game.loc].description.small;
if (MOD(game.abbrev[game.loc],game.abbnum) == 0 || msg == 0)
msg=locations[game.loc].description.big;
if (!FORCED(game.loc) && DARK(game.loc)) {