From 1a9fbb29080ea47cf39392cba39e5c7830838bb4 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 30 Jun 2021 14:28:26 +0800 Subject: [PATCH] add sensor gcc compile option Signed-off-by: kevin Change-Id: I7ffad5a7778e83ed7c7528a98bd093f463bed3cb --- sensor/hal/BUILD.gn | 4 ++-- sensor/test/performance/BUILD.gn | 4 ++-- sensor/test/unittest/BUILD.gn | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sensor/hal/BUILD.gn b/sensor/hal/BUILD.gn index 9d2024f99f..4a6b7b6932 100644 --- a/sensor/hal/BUILD.gn +++ b/sensor/hal/BUILD.gn @@ -59,8 +59,8 @@ if (defined(ohos_lite)) { ] if (ohos_build_compiler != "clang") { cflags += [ - "-wno-format", - "-wno-format-extra-args", + "-Wno-format", + "-Wno-format-extra-args", ] } } diff --git a/sensor/test/performance/BUILD.gn b/sensor/test/performance/BUILD.gn index dc34adce9a..f6482d042b 100644 --- a/sensor/test/performance/BUILD.gn +++ b/sensor/test/performance/BUILD.gn @@ -39,8 +39,8 @@ unittest("hdf_peripheral_sensor_test_performance") { ] if (ohos_build_compiler != "clang") { cflags += [ - "-wno-format", - "-wno-format-extra-args", + "-Wno-format", + "-Wno-format-extra-args", ] } deps = [ diff --git a/sensor/test/unittest/BUILD.gn b/sensor/test/unittest/BUILD.gn index 52294314f3..25832be5c5 100644 --- a/sensor/test/unittest/BUILD.gn +++ b/sensor/test/unittest/BUILD.gn @@ -47,8 +47,8 @@ if (defined(ohos_lite)) { ] if (ohos_build_compiler != "clang") { cflags += [ - "-wno-format", - "-wno-format-extra-args", + "-Wno-format", + "-Wno-format-extra-args", ] } deps = [ -- Gitee