Handle explicitly enum vals in switch [-Wswitch-enum]

This commit is contained in:
Philippe Teuwen 2019-04-13 22:46:08 +02:00
parent b6ee94ec8e
commit ce606b51fc
6 changed files with 43 additions and 17 deletions

View file

@ -81,7 +81,8 @@ void PrintAndLogEx(logLevel_t level, const char *fmt, ...) {
case WARNING:
strncpy(prefix, _CYAN_("[!]"), sizeof(prefix) - 1);
break;
default:
case NORMAL:
case INFO:
strncpy(prefix, prefixes[level], sizeof(prefix) - 1);
break;
}