summaryrefslogtreecommitdiff
path: root/src/shared/macro.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-07-15 14:58:29 +0200
committerKay Sievers <kay@vrfy.org>2012-07-15 14:58:29 +0200
commit19d1e4eeb6501b77ba34a29e6a632fcf775fccd5 (patch)
tree0ca509aac6ec2469db399cc41fb7414bbdebbbec /src/shared/macro.h
parentdbfd9122583baea644fc727466ce30a6b5fd2706 (diff)
journal: align byte-buffer that gets cased to an object
On Sun, Jul 15, 2012 at 2:00 PM, Koen Kooi <koen@dominion.thruhere.net> wrote: > | src/journal/sd-journal.c: In function 'sd_journal_process': > | src/journal/sd-journal.c:1891:21: warning: cast increases required alignment of target type [-Wcast-align] > | src/journal/sd-journal.c:1900:29: warning: cast increases required alignment of target type [-Wcast-align]
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r--src/shared/macro.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index 1c0aa915ad..97eebbc88b 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -45,6 +45,7 @@
#define _hidden_ __attribute__ ((visibility("hidden")))
#define _weakref_(x) __attribute__((weakref(#x)))
#define _introspect_(x) __attribute__((section("introspect." x)))
+#define _alignas_(x) __attribute__((aligned(__alignof(x))))
#define XSTRINGIFY(x) #x
#define STRINGIFY(x) XSTRINGIFY(x)