diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index 060899464c..843eb7b492 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -90,6 +90,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then $_CFLAGS_MORE_WARNINGS_DISABLE_LTO \ -Wall \ -Wextra \ + -Wcast-align=strict \ -Wdeclaration-after-statement \ -Wfloat-equal \ -Wformat-nonliteral \ diff --git a/meson.build b/meson.build index 696a113e91..d956704e61 100644 --- a/meson.build +++ b/meson.build @@ -174,6 +174,7 @@ endif common_flags += cc.get_supported_arguments([ '-Wall', '-Wextra', + '-Wcast-align=strict', '-Wdeclaration-after-statement', '-Wfloat-equal', '-Wformat-nonliteral',