Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93d5b24

Browse files
committed
For some files under sys/dev/drm2/i915, turn off warnings about unused
functions and variables, since they are contributed code. MFC after: 3 days
1 parent 7d8aa16 commit 93d5b24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sys/modules/drm2/i915kms/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ SRCS += device_if.h fb_if.h bus_if.h pci_if.h iicbus_if.h iicbb_if.h \
3838
opt_drm.h opt_compat.h opt_syscons.h
3939

4040
.include <bsd.kmod.mk>
41+
42+
CWARNFLAGS.i915_debug.c= -Wno-unused-function
43+
CWARNFLAGS.intel_lvds.c= -Wno-unused
44+
CWARNFLAGS.intel_tv.c= -Wno-unused
45+
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}

0 commit comments

Comments
 (0)