]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: also reject shifts that change the sign bit
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 11 Jun 2018 11:17:43 +0000 (13:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Jun 2018 15:06:58 +0000 (17:06 +0200)
commitd28b67d46a1f39569231d070f41365b71cc55e8f
treee355111cef257ca82129451f41b1f403597170b1
parent86ab333d00ca39c5c95174513db40546cb1268d1
meson: also reject shifts that change the sign bit

../src/test/test-sizeof.c: In function ‘main’:
../src/test/test-sizeof.c:70:24: error: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Werror=shift-overflow=]
                 X = (1 << 31),
                        ^~
cc1: some warnings being treated as errors

Follow-up for b05ecb8cadd8c32d31b1aabcff4e507bd89b5465.
meson.build