summaryrefslogtreecommitdiffstats
path: root/tools/generate-gperfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/generate-gperfs.py')
-rwxr-xr-xtools/generate-gperfs.py3
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; }};