diff options
| author | Michael Biebl <biebl@debian.org> | 2020-03-13 00:44:14 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-03-13 00:44:14 +0100 |
| commit | b012fa6e1d808e0736c009799c62d835cbfcc1dd (patch) | |
| tree | ff9a3777f6740e91b55f0a566914bfe4ab37935f /src/platform | |
| parent | e536d40eaea5dcdc0743b0a5e8e17faa46608a50 (diff) | |
New upstream version 1.22.10 upstream/1.22.10
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/nmp-object.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h index d52cc132..0c0796c3 100644 --- a/src/platform/nmp-object.h +++ b/src/platform/nmp-object.h @@ -496,10 +496,16 @@ _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX (NMPObjectType obj_type) case NMP_OBJECT_TYPE_LNK_VXLAN: case NMP_OBJECT_TYPE_LNK_WIREGUARD: return TRUE; - default: - nm_assert (nmp_class_from_type (obj_type)); + + case NMP_OBJECT_TYPE_ROUTING_RULE: return FALSE; + + case NMP_OBJECT_TYPE_UNKNOWN: + case __NMP_OBJECT_TYPE_LAST: + break; } + nm_assert_not_reached (); + return FALSE; } #define NMP_OBJECT_CAST_OBJECT(obj) \ |