]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
shared/utmp-wtmp: silence gcc warning about strncpy truncation
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 May 2019 13:10:58 +0000 (15:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 May 2019 19:05:26 +0000 (21:05 +0200)
commit6695c200bd5f0cbe65647fcdafa2f1dbed4b6a64
tree361c86f4e25c2041772afad10df10b260176ce74
parent881a62debbac022046f350be5c3c7e909189a7e7
shared/utmp-wtmp: silence gcc warning about strncpy truncation

Unfortunately the warning must be known, or otherwise the pragma generates a
warning or an error. So let's do a meson check for it.

Is it worth doing this to silence the warning? I think so, because apparently
the warning was already emitted by gcc-8.1, and with the recent push in gcc to
catch more such cases, we'll most likely only get more of those.
meson.build
src/basic/macro.h
src/basic/string-util.h
src/shared/utmp-wtmp.c