diff options
author | Mike Yuan <me@yhndnzj.com> | 2025-01-15 18:41:51 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2025-01-16 02:26:56 +0100 |
commit | 70923ed358d37e9b05d31556f1cb345e275c6f5d (patch) | |
tree | d2ac3dba6cf3a5a8a28e9072733417496fd65f5f /src/test/test-mempress.c | |
parent | tree-wide: remove unnecessary gcc >= 7 version check (diff) | |
download | systemd-70923ed358d37e9b05d31556f1cb345e275c6f5d.tar.xz systemd-70923ed358d37e9b05d31556f1cb345e275c6f5d.zip |
meson: enable -Wzero-as-null-pointer-constant
Support for C added in gcc 15:
https://github.com/gcc-mirror/gcc/commit/236c0829ee21a179c81b83f0d7f112ca23c47a4d
Diffstat (limited to 'src/test/test-mempress.c')
-rw-r--r-- | src/test/test-mempress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-mempress.c b/src/test/test-mempress.c index 44f1f4cf5f..dfbd63e601 100644 --- a/src/test/test-mempress.c +++ b/src/test/test-mempress.c @@ -43,7 +43,7 @@ static void *fake_pressure_thread(void *p) { ASSERT_STREQ(buf, "hello"); assert_se(write(cfd, &(const char) { 'z' }, 1) == 1); - return 0; + return NULL; } static int fake_pressure_callback(sd_event_source *s, void *userdata) { |