[mutter] meson: Add -Werror=strict-aliasing
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meson: Add -Werror=strict-aliasing
- Date: Wed, 11 May 2022 15:36:43 +0000 (UTC)
commit 570b94fc43e72ab575c92c07ffa37b8b48f933c1
Author: Dor Askayo <dor askayo gmail com>
Date: Sun May 8 00:09:44 2022 +0300
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2406>
meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index d6c1e10b62..21ba74e5fa 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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]