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

[media] atomisp: use correct dialect to disable warnings

There's a Macro that checks if gcc supports a warning before
disabling it. Use it, in order to avoid warnings when building
with older gcc versions.
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 703ecba4
...@@ -21,5 +21,7 @@ obj-$(CONFIG_VIDEO_LM3554) += lm3554.o ...@@ -21,5 +21,7 @@ obj-$(CONFIG_VIDEO_LM3554) += lm3554.o
# 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-but-set-variable -Wno-missing-prototypes \ ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
-Wno-unused-const-variable -Wno-missing-declarations ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
...@@ -7,5 +7,7 @@ obj-$(CONFIG_VIDEO_OV8858) += ov8858_driver.o ...@@ -7,5 +7,7 @@ obj-$(CONFIG_VIDEO_OV8858) += ov8858_driver.o
# 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-but-set-variable -Wno-missing-prototypes \ ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
-Wno-unused-const-variable -Wno-missing-declarations ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
...@@ -2,5 +2,7 @@ obj-$(CONFIG_VIDEO_OV5693) += ov5693.o ...@@ -2,5 +2,7 @@ obj-$(CONFIG_VIDEO_OV5693) += ov5693.o
# 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-but-set-variable -Wno-missing-prototypes \ ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
-Wno-unused-const-variable -Wno-missing-declarations ccflags-y += $(call cc-disable-warning, unused-const-variable)
ccflags-y += $(call cc-disable-warning, missing-prototypes)
ccflags-y += $(call cc-disable-warning, missing-declarations)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册