提交 a1a0a56f 编写于 作者: M Mauro Carvalho Chehab

media: staging: atomisp: disable warnings with cc-disable-warning

Instead of directly using -Wno-foo, use cc-disable-warning, as it
checks if the compiler has the warnings we want to disable.
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 9a01968c
...@@ -354,7 +354,9 @@ ccflags-y += $(INCLUDES) $(DEFINES) -fno-common ...@@ -354,7 +354,9 @@ ccflags-y += $(INCLUDES) $(DEFINES) -fno-common
# HACK! While this driver is in bad shape, don't enable several warnings # HACK! While this driver is in bad shape, don't enable several warnings
# that would be otherwise enabled with W=1 # that would be otherwise enabled with W=1
ccflags-y += -Wno-unused-const-variable -Wno-missing-prototypes \ ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
-Wno-unused-but-set-variable -Wno-missing-declarations \ ccflags-y += $(call cc-disable-warning, missing-prototypes)
-Wno-suggest-attribute=format -Wno-missing-prototypes \ ccflags-y += $(call cc-disable-warning, missing-declarations)
-Wno-implicit-fallthrough ccflags-y += $(call cc-disable-warning, suggest-attribute=format)
ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册