add default for switch statement
@@ -24,10 +24,10 @@ mongoc_server_api_version_to_string (mongoc_server_api_version_t version)
switch (version) {
case MONGOC_SERVER_API_V1:
return "1";
- }
-
+ default:
return NULL;
}
+}
bool
mongoc_server_api_version_from_string (const char *version,
