varobj_set_display_format takes an enum and exhaustively switches on
the values -- but also has a default. This default case is dead code.
Reviewed-by: Keith Seitz <keiths@redhat.com>
varobj_set_display_format (struct varobj *var,
enum varobj_display_formats format)
{
- switch (format)
- {
- case FORMAT_NATURAL:
- case FORMAT_BINARY:
- case FORMAT_DECIMAL:
- case FORMAT_HEXADECIMAL:
- case FORMAT_OCTAL:
- case FORMAT_ZHEXADECIMAL:
- var->format = format;
- break;
-
- default:
- var->format = variable_default_display (var);
- }
+ var->format = format;
if (varobj_value_is_changeable_p (var)
&& var->value != nullptr && !var->value->lazy ())