From 0afe020cf1ccdd969584ef442811d68f37ab50d9 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 19 Mar 2005 11:18:17 +0000 Subject: [PATCH] Compile kernel modules with -fno-strict-aliasing on all architectures. This prevents warnings in kernel header files. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2935 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index da1c82bf..cc04186d 100644 --- a/Makefile +++ b/Makefile @@ -204,14 +204,14 @@ ALL_CPPFLAGS += $(CPPFLAGS) ALL_CFLAGS += $(CFLAGS) MODCPPFLAGS := -MODCFLAGS := +MODCFLAGS := -fno-strict-aliasing ifeq ($(MACHINE),alpha) MODCFLAGS += -ffixed-8 -mno-fp-regs -mcpu=ev56 endif ifeq ($(MACHINE),x86_64) -MODCFLAGS += -fno-strict-aliasing -fno-common -fomit-frame-pointer -mno-red-zone \ +MODCFLAGS += -fno-common -fomit-frame-pointer -mno-red-zone \ -mcmodel=kernel -fno-reorder-blocks -finline-limit=2000 -fno-strength-reduce endif