mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-15 16:05:38 +02:00
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:
parent
c19a31d925
commit
4e07b63cef
2 changed files with 4 additions and 1 deletions
3
plugin.c
3
plugin.c
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue