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

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

No files matched your search

+2 -1
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;
}