On 10/30/19 7:58 PM, NeilBrown wrote:
super-intel often takes the address of a packed member,
and seems to work.
So suppress this warning.
(Earlier gcc ignore the new flag)
Signed-off-by: NeilBrown <neilb@xxxxxxx>
I am kinda in two minds about this. I started cleaning up some of the
newer gcc stuff a while ago, but then got stuck on super-intel.c
I want the code to build, but I also feel super-intel.c needs cleaning
up and made to use accessor functions or something like that to deal
with these accesses in a better way?
Thoughts?
Cheers,
Jes
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index dfe00b0a0be8..0768cc5b566e 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@ endif
CC ?= $(CROSS_COMPILE)gcc
CXFLAGS ?= -ggdb
-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
+CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wno-address-of-packed-member
ifdef WARN_UNUSED
CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3
endif