plugin: workaround gcc bug that triggers a compilation error

GCC thinks str2type() returns NULL when it doesn't.

Closes #350
This commit is contained in:
Daniel Eklöf 2024-03-18 16:42:45 +01:00
parent c19a31d925
commit 4e07b63cef
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 1 deletions

View file

@ -126,7 +126,8 @@ type2str(enum plugin_type type)
case PLUGIN_DECORATION: return "decoration";
}
return NULL;
assert(false && "invalid type");
return "";
}
static void __attribute__((constructor))