From owner-svn-src-stable@freebsd.org Sat Mar 11 15:21:36 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 264A8CFBE67; Sat, 11 Mar 2017 15:21:36 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E9D471ED6; Sat, 11 Mar 2017 15:21:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2BFLZ8q010040; Sat, 11 Mar 2017 15:21:35 GMT (envelope-from avg@FreeBSD.org) Received: (from avg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2BFLZvM010039; Sat, 11 Mar 2017 15:21:35 GMT (envelope-from avg@FreeBSD.org) Message-Id: <201703111521.v2BFLZvM010039@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avg set sender to avg@FreeBSD.org using -f From: Andriy Gapon Date: Sat, 11 Mar 2017 15:21:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r315069 - stable/10/sys/modules/qlxgbe X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2017 15:21:36 -0000 Author: avg Date: Sat Mar 11 15:21:34 2017 New Revision: 315069 URL: https://svnweb.freebsd.org/changeset/base/315069 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. This is a direct commit as the change is not required in head. Approved by: davidcs Modified: stable/10/sys/modules/qlxgbe/Makefile Modified: stable/10/sys/modules/qlxgbe/Makefile ============================================================================== --- stable/10/sys/modules/qlxgbe/Makefile Sat Mar 11 15:16:55 2017 (r315068) +++ stable/10/sys/modules/qlxgbe/Makefile Sat Mar 11 15:21:34 2017 (r315069) @@ -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