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 /tools/generate-gperfs.py | |
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 'tools/generate-gperfs.py')
-rwxr-xr-x | tools/generate-gperfs.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/generate-gperfs.py b/tools/generate-gperfs.py index e2d6e30b7a..1e22a61406 100755 --- a/tools/generate-gperfs.py +++ b/tools/generate-gperfs.py @@ -17,6 +17,9 @@ if __name__ == '__main__': print("""\ %{ _Pragma("GCC diagnostic ignored \\"-Wimplicit-fallthrough\\"") +#if __GNUC__ >= 15 +_Pragma("GCC diagnostic ignored \\"-Wzero-as-null-pointer-constant\\"") +#endif %}""") print(f"""\ struct {name}_name {{ const char* name; int id; }}; |