summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-30 09:06:30 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2019-02-01 11:36:48 +0100
commit67c8d3d6face8cd40b8af3b704218e2b92c418a5 (patch)
tree8080ec98ace0bc40cc6f2c6c47f32e63796f6bfd
parent5cf8a8736c5f700a8087e8618a4ad6f777a3e50a (diff)
downloadNetworkManager-bg/lldp-enh-rh1652211-wip.tar.gz
core/lldp: avoid default switch case in lldp_neighbor_to_variant()bg/lldp-enh-rh1652211-wip
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.
-rw-r--r--src/devices/nm-lldp-listener.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/nm-lldp-listener.c b/src/devices/nm-lldp-listener.c
index 3306ba1234..74a0d0b480 100644
--- a/src/devices/nm-lldp-listener.c
+++ b/src/devices/nm-lldp-listener.c
@@ -827,7 +827,7 @@ lldp_neighbor_to_variant (LldpNeighbor *neigh)
g_variant_builder_end (&builder2));
break;
}
- default:
+ case LLDP_ATTR_TYPE_NONE:
break;
}
}