diff options
author | Kay Sievers <kay@vrfy.org> | 2012-07-15 14:58:29 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-07-15 14:58:29 +0200 |
commit | 19d1e4eeb6501b77ba34a29e6a632fcf775fccd5 (patch) | |
tree | 0ca509aac6ec2469db399cc41fb7414bbdebbbec /src/journal/sd-journal.c | |
parent | dbfd9122583baea644fc727466ce30a6b5fd2706 (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/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 57572d4f01..a2900fbee9 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1868,7 +1868,7 @@ static int determine_change(sd_journal *j) { } _public_ int sd_journal_process(sd_journal *j) { - uint8_t buffer[sizeof(struct inotify_event) + FILENAME_MAX]; + uint8_t buffer[sizeof(struct inotify_event) + FILENAME_MAX] _alignas_(struct inotify_event); bool got_something = false; if (!j) |