Commit 95aa7ac9 authored by Thomas Haller's avatar Thomas Haller Committed by Beniamino Galvani

core/lldp: avoid default switch case in lldp_neighbor_to_variant()

Explicitly check for LLDP_ATTR_TYPE_NONE. That's the only one we expect,
and the compiler can warn about missing switch cases for enums.
parent 1c7cbda6
......@@ -813,7 +813,7 @@ lldp_neighbor_to_variant (LldpNeighbor *neigh)
g_variant_builder_end (&builder2));
break;
}
default:
case LLDP_ATTR_TYPE_NONE:
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment