tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: fallthrough and breaks in drm and atheros codes



> The only different is that my GENERIC has DEBUG and LOCKDEBUG... And as
> you can see from the command line, there is
> -Wno-error=implicit-fallthrough

hmmm..  is this being missed some how?

> cat conf/copts.mk
#       $NetBSD: copts.mk,v 1.3 2019/02/10 05:01:59 mrg Exp $

# MI per-file compiler options required.

.ifndef _SYS_CONF_COPTS_MK_
_SYS_CONF_COPTS_MK_=1

.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
COPTS.zlib.c+=          -Wno-error=implicit-fallthrough
COPTS.pf.c+=            -Wno-error=implicit-fallthrough
COPTS.radeon_cs.c+=     -Wno-error=implicit-fallthrough
COPTS.via_dmablit.c+=   -Wno-error=implicit-fallthrough
.endif

.endif

it's a new file, but should be present for all kernel builds?


.mrg.


Home | Main Index | Thread Index | Old Index