Makefile (1136fa0c07de570dc17858745af8be169d1440ba) | Makefile (1344794a59db2bd44b4919d2d75300fd3b1c2cd7) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the drm device driver. This driver provides support for the 4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 5 6# Add a set of useful warning flags and enable -Werror for CI to prevent 7# trivial mistakes from creeping in. We have to do this piecemeal as we reject 8# any patch that isn't warning clean, so turning on -Wall -Wextra (or W=1) we 9# need to filter out dubious warnings. Still it is our interest 10# to keep running locally with W=1 C=1 until we are completely clean. 11# 12# Note the danger in using -Wall -Wextra is that when CI updates gcc we 13# will most likely get a sudden build breakage... Hopefully we will fix 14# new warnings before CI updates! 15subdir-ccflags-y := -Wall -Wextra 16subdir-ccflags-y += -Wno-unused-parameter 17subdir-ccflags-y += -Wno-type-limits 18subdir-ccflags-y += -Wno-missing-field-initializers 19subdir-ccflags-y += -Wno-sign-compare | 1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the drm device driver. This driver provides support for the 4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 5 6# Add a set of useful warning flags and enable -Werror for CI to prevent 7# trivial mistakes from creeping in. We have to do this piecemeal as we reject 8# any patch that isn't warning clean, so turning on -Wall -Wextra (or W=1) we 9# need to filter out dubious warnings. Still it is our interest 10# to keep running locally with W=1 C=1 until we are completely clean. 11# 12# Note the danger in using -Wall -Wextra is that when CI updates gcc we 13# will most likely get a sudden build breakage... Hopefully we will fix 14# new warnings before CI updates! 15subdir-ccflags-y := -Wall -Wextra 16subdir-ccflags-y += -Wno-unused-parameter 17subdir-ccflags-y += -Wno-type-limits 18subdir-ccflags-y += -Wno-missing-field-initializers 19subdir-ccflags-y += -Wno-sign-compare |
20subdir-ccflags-y += -Wno-shift-negative-value |
|
20subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) 21subdir-ccflags-y += $(call cc-disable-warning, frame-address) 22subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror 23 24# Fine grained warnings disable 25CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init) 26CFLAGS_display/intel_fbdev.o = $(call cc-disable-warning, override-init) 27 --- 315 unchanged lines hidden --- | 21subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) 22subdir-ccflags-y += $(call cc-disable-warning, frame-address) 23subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror 24 25# Fine grained warnings disable 26CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init) 27CFLAGS_display/intel_fbdev.o = $(call cc-disable-warning, override-init) 28 --- 315 unchanged lines hidden --- |