Like the Linux kernel, barebox is built with -fno-strict-aliasing, and code is written to take advantage of that. As dt-utils imports code from barebox, we may import code that assumes aliasing to be non-strict, so we better compile it with the same rules.
Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 00c80105e467..be8967eb0809 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,8 @@ my_CFLAGS="-Wall \ -Wmissing-declarations -Wmissing-prototypes \ -Wnested-externs -Wsign-compare -Wchar-subscripts \ -Wstrict-prototypes -Wshadow \ --Wformat-security -Wtype-limits" +-Wformat-security -Wtype-limits \ +-fno-strict-aliasing" AC_SUBST([my_CFLAGS]) PKG_CHECK_MODULES(UDEV, [libudev]) -- 2.39.2