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>
This commit is contained in:
parent
40edfbcbeb
commit
570b94fc43
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user