From 570b94fc43e72ab575c92c07ffa37b8b48f933c1 Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Sun, 8 May 2022 00:09:44 +0300 Subject: [PATCH] meson: Add -Werror=strict-aliasing This warning can point out design issues, so it should be useful to have it treated as error. Part-of: --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index d6c1e10b6..21ba74e5f 100644 --- a/meson.build +++ b/meson.build @@ -427,6 +427,7 @@ if buildtype != 'plain' '-Werror=pointer-to-int-cast', '-Werror=empty-body', '-Werror=write-strings', + '-Werror=strict-aliasing', '-Wno-sign-compare', '-Wno-cast-function-type', '-Wno-unused-parameter',