From: Lennart Poettering Date: Mon, 11 Oct 2021 11:38:37 +0000 (+0200) Subject: macro: also use trailing __ for alignof use in attributes X-Git-Tag: v250-rc1~533^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=899c1c0a34eee851435349c4e4412347ca9907b5;p=thirdparty%2Fsystemd.git macro: also use trailing __ for alignof use in attributes While the underscore is optional, the docs say we should suffix and we do that everywher else. Do so here too. --- diff --git a/src/basic/macro.h b/src/basic/macro.h index 6d5840a832d..c05339832d7 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -25,7 +25,7 @@ #define _public_ __attribute__((__visibility__("default"))) #define _hidden_ __attribute__((__visibility__("hidden"))) #define _weakref_(x) __attribute__((__weakref__(#x))) -#define _alignas_(x) __attribute__((__aligned__(__alignof(x)))) +#define _alignas_(x) __attribute__((__aligned__(__alignof__(x)))) #define _alignptr_ __attribute__((__aligned__(sizeof(void*)))) #define _warn_unused_result_ __attribute__((__warn_unused_result__))