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:
parent
b40931cd17
commit
c9d41e2641
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue