Commit f2f5e820 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Resolve GCC warning: enumeration value ‘SERVER_COUNT’ not handled in switch

parent f169a52f
Pipeline #3564 passed with stage
in 6 minutes and 5 seconds
......@@ -32,8 +32,10 @@ const char* server_type_desc(enum server_type type)
case SERVER_WEB: return "web";
case SERVER_MAIL: return "mail";
case SERVER_SERVICES: return "srvc";
case SERVER_COUNT:
default:
return "???";
}
return "???";
}
int mqtt_init(struct mqtt* mqtt, scfg_t* cfg, enum server_type type)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment