copts.mk revision 1.3.4.3       1 #	$NetBSD: copts.mk,v 1.3.4.3 2020/04/08 14:08:01 martin Exp $
      2 
      3 # MI per-file compiler options required.
      4 
      5 .ifndef _SYS_CONF_COPTS_MK_
      6 _SYS_CONF_COPTS_MK_=1
      7 
      8 .if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
      9 COPTS.zlib.c+=		-Wno-error=implicit-fallthrough
     10 COPTS.pf.c+=		-Wno-error=implicit-fallthrough
     11 COPTS.radeon_cs.c+=	-Wno-error=implicit-fallthrough
     12 COPTS.via_dmablit.c+=	-Wno-error=implicit-fallthrough
     13 .endif
     14 
     15 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" && \
     16     (${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel")
     17 COPTS.linux_machdep.c+=	-Wno-error=unused-but-set-variable
     18 .endif
     19 
     20 .endif
     21