Fixed compiler warnings related to const, unreachable code, and an empty translation unit.
This commit is contained in:
parent
8db3f9d5a7
commit
3e079a96c8
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ char *MIFgettok(char **s)
|
|||
}
|
||||
break;
|
||||
}
|
||||
return NULL; /* should not happen */
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue