]> git.ipfire.org Git - thirdparty/systemd.git/commit
macro: make sure ALIGN() can be calculated constant by the compiler
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Apr 2013 00:07:14 +0000 (02:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Apr 2013 21:10:40 +0000 (23:10 +0200)
commit9be9c7cff600018279a0c3fa5fbe719bd1c0b8ad
tree7c1e61f36680f92143e0df19a55de2f0f9a0edc3
parent3fd0bd432d4875c15b9e8d586770f60f03278fe7
macro: make sure ALIGN() can be calculated constant by the compiler

If we pass a constant value to ALIGN() gcc should have the chance to
calculate the value during compilation rather than runtime, so let's
avoid a static inline call if we can.
src/libsystemd-bus/bus-message.c
src/shared/macro.h