Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys apply -Wno-error=implicit-fallthrough to ar5212_xmit.c a...
details: https://anonhg.NetBSD.org/src/rev/dc1a67f968b3
branches: trunk
changeset: 838923:dc1a67f968b3
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 08:36:43 2019 +0000
description:
apply -Wno-error=implicit-fallthrough to ar5212_xmit.c and ar5416_xmit.c.
diffstat:
sys/external/isc/atheros_hal/conf/files.ath_hal | 6 +++++-
sys/modules/ath_hal/Makefile | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r 03ce161fefad -r dc1a67f968b3 sys/external/isc/atheros_hal/conf/files.ath_hal
--- a/sys/external/isc/atheros_hal/conf/files.ath_hal Mon Feb 04 08:23:53 2019 +0000
+++ b/sys/external/isc/atheros_hal/conf/files.ath_hal Mon Feb 04 08:36:43 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.ath_hal,v 1.6 2014/10/14 08:17:27 uebayasi Exp $
+# $NetBSD: files.ath_hal,v 1.7 2019/02/04 08:36:43 mrg Exp $
defflag opt_athhal.h ATHHAL_ASSERT ATHHAL_DEBUG ATHHAL_DEBUG_ALQ
defflag opt_athhal.h ATHHAL_WRITE_EEPROM ATHHAL_WRITE_REGDOMAIN
@@ -93,6 +93,8 @@
file external/isc/atheros_hal/dist/ar5212/ar5212_rfgain.c ath & athhal_ar5212_subr
file external/isc/atheros_hal/dist/ar5212/ar5212_xmit.c ath & athhal_ar5212_subr
+makeoptions ath "CWARNFLAGS.ar5212_xmit.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} == 7:? -Wno-error=implicit-fallthrough :}"
+
# Atheros AR5312 family
#
defflag opt_athhal.h ATHHAL_AR5312: athhal_eeprom_v3, athhal_ar5212_subr
@@ -140,6 +142,8 @@
file external/isc/atheros_hal/dist/ar5416/ar9285_attach.c ath & athhal_ar5416
file external/isc/atheros_hal/dist/ar5416/ar9285_reset.c ath & athhal_ar5416
+makeoptions ath "CWARNFLAGS.ar5416_xmit.c"+="${${ACTIVE_CC} == gcc && ${HAVE_GCC:U0} == 7:? -Wno-error=implicit-fallthrough :}"
+
#
#
makeoptions ath CPPFLAGS+="-I${S}/external/isc/atheros_hal/dist"
diff -r 03ce161fefad -r dc1a67f968b3 sys/modules/ath_hal/Makefile
--- a/sys/modules/ath_hal/Makefile Mon Feb 04 08:23:53 2019 +0000
+++ b/sys/modules/ath_hal/Makefile Mon Feb 04 08:36:43 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2011/08/28 15:48:19 jmcneill Exp $
+# $NetBSD: Makefile,v 1.5 2019/02/04 08:36:43 mrg Exp $
.include "../Makefile.inc"
@@ -96,5 +96,10 @@
.include "Makefile.inc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.ar5212_xmit.c+= -Wno-error=implicit-fallthrough
+COPTS.ar5416_xmit.c+= -Wno-error=implicit-fallthrough
+.endif
+
.include <bsd.kmodule.mk>
KMODSCRIPT= ${S}/modules/ath_hal/ath_hal.ldscript
Home |
Main Index |
Thread Index |
Old Index