Revert "sttype-op(dfilter): fix Dead initialization"

This reverts commit acdee88430.

The use of a default switch statement prevents useful compiler
diagnostics, unlike the Clang Analyzer warning it purports to
fix.
This commit is contained in:
João Valverde 2023-11-01 23:44:30 +00:00
parent b40931cd17
commit c9d41e2641
1 changed files with 1 additions and 4 deletions

View File

@ -70,7 +70,7 @@ oper_free(void *value)
static char *
oper_todisplay(const oper_t *oper)
{
const char *s;
const char *s = "(notset)";
switch(oper->op) {
case STNODE_OP_NOT:
@ -140,9 +140,6 @@ oper_todisplay(const oper_t *oper)
case STNODE_OP_UNINITIALIZED:
s = "(uninitialized)";
break;
default:
s = "(notset)";
break;
}
return g_strdup(s);
}