aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2017-03-07 15:43:49 +0000
committerAndriy Gapon <avg@FreeBSD.org>2017-03-07 15:43:49 +0000
commit9d663ff9d98ecca44509313d7131911cef091b1a (patch)
treecab802d3439f894a21cbfd6ffddfbb2848caa8da
parent249a42207b6b3b2f7a842b0b5d2bae886a57d5e9 (diff)
downloadsrc-9d663ff9d98ecca44509313d7131911cef091b1a.tar.gz
src-9d663ff9d98ecca44509313d7131911cef091b1a.zip
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
Notes
Notes: svn path=/head/; revision=314862
-rw-r--r--sys/modules/qlxgbe/Makefile3
1 files changed, 3 insertions, 0 deletions
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