diff --git a/src/libsystemd/sd-json/sd-json.c b/src/libsystemd/sd-json/sd-json.c index f263ab6740..c0067cb40b 100644 --- a/src/libsystemd/sd-json/sd-json.c +++ b/src/libsystemd/sd-json/sd-json.c @@ -56,7 +56,7 @@ typedef struct JsonSource { char name[]; } JsonSource; -/* On x86-64 this whole structure should have a size of 6 * 64 bit = 48 bytes */ +/* On x86-64 this whole structure should have a size of 5 * 64 bit = 40 bytes */ struct sd_json_variant { union { /* We either maintain a reference counter for this variant itself, or we are embedded into an @@ -132,7 +132,7 @@ struct sd_json_variant { /* Let's make sure this structure isn't increased in size accidentally. This check is only for our most relevant arch * (x86-64). */ -#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8 +#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8 && !defined(__EDG__) assert_cc(sizeof(sd_json_variant) == 40U); assert_cc(INLINE_STRING_MAX == 7U); #endif