Extend dim's hack from r228978: not only clang but gcc on non-x86 platforms
warns about unused variables in this code, so always add -Wno-unused to the warning flags. Why gcc on x86 *doesn't* warn about this, I will never know. The code itself should probably be fixed at some point.
This commit is contained in:
parent
ba4be2110a
commit
643c87ca3d
@ -7,6 +7,6 @@ SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CWARNFLAGS.r128_cce.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.r128_state.c= ${NO_WUNUSED_VALUE}
|
||||
CWARNFLAGS.r128_cce.c= -Wno-unused ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.r128_state.c= -Wno-unused
|
||||
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
|
||||
|
@ -8,6 +8,6 @@ SRCS +=device_if.h bus_if.h pci_if.h opt_drm.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CWARNFLAGS.r600_cp.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.radeon_cp.c= ${NO_WUNUSED_VALUE} ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.r600_cp.c= -Wno-unused ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS.radeon_cp.c= -Wno-unused ${NO_WCONSTANT_CONVERSION}
|
||||
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
|
||||
|
@ -22,6 +22,6 @@ opt_drm.h:
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
CWARNFLAGS.via_dma.c= ${NO_WUNUSED_VALUE}
|
||||
CWARNFLAGS.via_dmablit.c= ${NO_WUNUSED_VALUE}
|
||||
CWARNFLAGS.via_dma.c= -Wno-unused-value
|
||||
CWARNFLAGS.via_dmablit.c= -Wno-unused-value
|
||||
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user