Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2017 15:43:49 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314862 - head/sys/modules/qlxgbe
Message-ID:  <201703071543.v27FhnoL024242@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Mar  7 15:43:49 2017
New Revision: 314862
URL: https://svnweb.freebsd.org/changeset/base/314862

Log:
  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

Modified:
  head/sys/modules/qlxgbe/Makefile

Modified: head/sys/modules/qlxgbe/Makefile
==============================================================================
--- head/sys/modules/qlxgbe/Makefile	Tue Mar  7 15:37:51 2017	(r314861)
+++ head/sys/modules/qlxgbe/Makefile	Tue Mar  7 15:43:49 2017	(r314862)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703071543.v27FhnoL024242>