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