summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-30 09:06:30 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2019-03-27 10:47:24 +0100
commit95aa7ac91e8d1b4c98fd4d2f8f87bddc03921fbe (patch)
treefa43b04a281c43f994a1551f73dd8411e8a3743c
parent1c7cbda67a2a120f492d2c95d43410322214f8a6 (diff)
downloadNetworkManager-95aa7ac91e8d1b4c98fd4d2f8f87bddc03921fbe.tar.gz
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.
-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 c8751f2ca6..e5b1ee52e1 100644
--- a/src/devices/nm-lldp-listener.c
+++ b/src/devices/nm-lldp-listener.c
@@ -813,7 +813,7 @@ lldp_neighbor_to_variant (LldpNeighbor *neigh)
g_variant_builder_end (&builder2));
break;
}
- default:
+ case LLDP_ATTR_TYPE_NONE:
break;
}
}