From: Luca Boccassi Date: Fri, 13 Feb 2026 19:34:09 +0000 (+0000) Subject: sd-json: also skip assert_cc in VS Code parser X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b822977c29e8351d0a56f32ddc49b54c4479089;p=thirdparty%2Fsystemd.git sd-json: also skip assert_cc in VS Code parser For some reason the VS Code parser thinks sd_json_variant is still 48 bytes, so skip the assert when running in that parser too Follow-up for 337712e777bff389f53e26d5b378d2ceba7d98a8 --- diff --git a/src/libsystemd/sd-json/sd-json.c b/src/libsystemd/sd-json/sd-json.c index d9e6b24b8f1..c0067cb40b4 100644 --- a/src/libsystemd/sd-json/sd-json.c +++ b/src/libsystemd/sd-json/sd-json.c @@ -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