build: Add a new gcc 13 warning
authorBenjamin Otte <otte@redhat.com>
Fri, 5 May 2023 05:36:03 +0000 (07:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 16 May 2023 16:53:27 +0000 (18:53 +0200)
We don't trigger it and it's a useful warning. So let's use it.

meson.build

index 65eba0bd3ad9794310a786c7b93a86fb943ee20d..04f985f19f272b4720f9f1f4e2ff5602d7c6eb5c 100644 (file)
@@ -298,6 +298,7 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
     'address',
     'array-bounds',
     'empty-body',
+    'enum-int-mismatch',
     'implicit',
     'implicit-fallthrough',   # For non-gcc
     'implicit-fallthrough=5', # For GCC, only recognize the attribute and no comments