diff options
author | Thomas Haller <thaller@redhat.com> | 2019-05-28 15:07:34 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-05-29 09:42:40 +0200 |
commit | 5113c5bd00f061a407e2dc941cc462bc36fc2948 (patch) | |
tree | 1024c7bad1924057e8aad909e29f3f5ade892e67 /src | |
parent | ad06cc78dc086115729331f202fa86afd045ae6e (diff) | |
download | NetworkManager-5113c5bd00f061a407e2dc941cc462bc36fc2948.tar.gz |
platform: avoid compiler error passing NMP_OBJECT_CAST_OBJ_WITH_IFINDEX() to nm_hash_update_vals()
Clang (3.4.2-9.el7) on CentOS 7.6 fails related to nm_hash_update_vals().
Clang seems to dislike passing certain complex arguments to typeof().
I'd prefer to fix nm_hash_update_vals() to not have this problem,
but I don't know how.
This works around the issue.
Diffstat (limited to 'src')
-rw-r--r-- | src/platform/nmp-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nmp-object.c b/src/platform/nmp-object.c index 0d20100cae..792c4e7b84 100644 --- a/src/platform/nmp-object.c +++ b/src/platform/nmp-object.c @@ -398,7 +398,7 @@ _idx_obj_part (const DedupMultiIdxType *idx_type, if (h) { nm_hash_update_vals (h, idx_type->cache_id_type, - NMP_OBJECT_CAST_OBJ_WITH_IFINDEX (obj_a)->ifindex); + obj_a->obj_with_ifindex.ifindex); } return 1; |