From 5113c5bd00f061a407e2dc941cc462bc36fc2948 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 28 May 2019 15:07:34 +0200 Subject: 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. --- src/platform/nmp-object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.1