mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 00:00:08 +01:00
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.
This commit is contained in:
parent
1c7cbda67a
commit
95aa7ac91e
1 changed files with 1 additions and 1 deletions
|
|
@ -813,7 +813,7 @@ lldp_neighbor_to_variant (LldpNeighbor *neigh)
|
|||
g_variant_builder_end (&builder2));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
case LLDP_ATTR_TYPE_NONE:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue