diff options
| author | mrg <mrg@NetBSD.org> | 2019-02-04 08:18:07 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2019-02-04 08:18:07 +0000 |
| commit | 971ff4b359d7f6028c366fc40e6cc49ab09eb423 (patch) | |
| tree | d6425f04d66b38e89856891932733988d197a9e2 /sys/modules | |
| parent | b7834f69d4aa3f73ce48c43822a6af7f51acb880 (diff) | |
add -Wno-error=int-in-bool-context or -Wno-error=implicit-fallthrough
for various drm files that would be best ignored or upstream fixed.
(could fix savagedrm, no one upstream is that any more.)
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/i915drmkms/Makefile | 8 | ||||
| -rw-r--r-- | sys/modules/savagedrm/Makefile | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/modules/i915drmkms/Makefile b/sys/modules/i915drmkms/Makefile index 45990572001..e3877703612 100644 --- a/sys/modules/i915drmkms/Makefile +++ b/sys/modules/i915drmkms/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2018/08/28 03:48:38 riastradh Exp $ +# $NetBSD: Makefile,v 1.12 2019/02/04 08:18:08 mrg Exp $ .include "../Makefile.inc" .include "../drmkms/Makefile.inc" @@ -112,4 +112,10 @@ SRCS+= intel_sprite.c SRCS+= intel_tv.c SRCS+= intel_uncore.c +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.intel_display.c+= -Wno-error=implicit-fallthrough +COPTS.intel_ddi.c+= -Wno-error=implicit-fallthrough +COPTS.intel_sdvo.c+= -Wno-error=implicit-fallthrough +.endif + .include <bsd.kmodule.mk> diff --git a/sys/modules/savagedrm/Makefile b/sys/modules/savagedrm/Makefile index e90ce5ce18f..312faa1cffd 100644 --- a/sys/modules/savagedrm/Makefile +++ b/sys/modules/savagedrm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2011/08/28 16:19:08 jmcneill Exp $ +# $NetBSD: Makefile,v 1.2 2019/02/04 08:18:08 mrg Exp $ .include "../Makefile.inc" @@ -15,4 +15,8 @@ SRCS+= savage_state.c CPPFLAGS+= -I${S}/external/bsd/drm/dist/bsd-core \ -I${S}/external/bsd/drm/dist/shared-core +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.savage_state.c+= -Wno-error=implicit-fallthrough +.endif + .include <bsd.kmodule.mk> |
