Fixed compiler warnings related to const, unreachable code, and an empty translation unit.

This commit is contained in:
Jim Monte 2020-02-14 15:20:28 -05:00
parent 8db3f9d5a7
commit 3e079a96c8
3 changed files with 11 additions and 2 deletions

View File

@ -412,7 +412,7 @@ char *cp_tildexpand(const char *string)
/* MW. Now simply compare strings */
bool cp_globmatch(char *p, char *s)
bool cp_globmatch(const char *p, const char *s)
{
return !(strcmp(p, s));
} /* end of function cp_globmatch */

View File

@ -1641,4 +1641,14 @@ winmessage(char *new_msg)
}
#else /* HAS_WINGUI not defined */
/* Prevent warning regarding empty translation unit */
static void dummy(void)
{
return;
} /* end of function dummy */
#endif /* HAS_WINGUI */

View File

@ -142,7 +142,6 @@ char *MIFgettok(char **s)
}
break;
}
return NULL; /* should not happen */
}
#if 0