configure: Warn about strict alliasing issues in strict builds

This commit is contained in:
Jakub Jelen 2021-02-25 11:25:25 +01:00 committed by Frank Morgner
parent 2fa6700599
commit 544dcc6827
1 changed files with 1 additions and 1 deletions

View File

@ -1091,7 +1091,7 @@ if test "${enable_pedantic}" = "yes"; then
CFLAGS="-pedantic ${CFLAGS}"
fi
if test "${enable_strict}" = "yes"; then
CFLAGS="-Wall -Wextra -Wno-unused-parameter -Werror ${CFLAGS}"
CFLAGS="-Wall -Wextra -Wno-unused-parameter -Werror -Wstrict-aliasing=2 ${CFLAGS}"
fi
AC_CONFIG_FILES([