From 544dcc68272db07e1847a008dcae4ad8d4462989 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 25 Feb 2021 11:25:25 +0100 Subject: [PATCH] configure: Warn about strict alliasing issues in strict builds --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 92904ec4..908481a8 100644 --- a/configure.ac +++ b/configure.ac @@ -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([