From 9d663ff9d98ecca44509313d7131911cef091b1a Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Tue, 7 Mar 2017 15:43:49 +0000 Subject: [PATCH] qlxgbe: add GCC_MS_EXTENSIONS to CFLAGS to make old base GCC happy The module uses unnamed structure and union fields and base GCC in stable/10 doesn't like it. I think that that is a C11 feature, so it is courteous of more modern compilers to not complain about it when compiling in C99 mode. Approved by: davidcs MFC after: 5 days --- sys/modules/qlxgbe/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/modules/qlxgbe/Makefile b/sys/modules/qlxgbe/Makefile index d94b08e50885..1ecb96f7638e 100644 --- a/sys/modules/qlxgbe/Makefile +++ b/sys/modules/qlxgbe/Makefile @@ -43,6 +43,9 @@ SRCS+= ql_minidump.c SRCS+= device_if.h bus_if.h pci_if.h +# Uses unnamed structure and union fields +CFLAGS+= ${GCC_MS_EXTENSIONS} + #CFLAGS += -DQL_DBG # Please turn off QL_LDFLASH_FW when you enable QL_ENABLE_ISCSI_TLV # You may comment out both QL_LDFLASH_FW and QL_ENABLE_ISCSI_TLV if you like