From 7f5a2243d3f92d892b293af64eebd4d86d68fb2a Mon Sep 17 00:00:00 2001 From: i-wangliangliang Date: Sat, 9 Jul 2022 10:54:27 +0800 Subject: [PATCH] =?UTF-8?q?iccarm=E5=B7=A5=E5=85=B7=E9=93=BE=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: i-wangliangliang Change-Id: Ic9abb66471bade1cc26371555f410d2d88df387f --- communication/broadcast/BUILD.gn | 1 - samgr/BUILD.gn | 1 - samgr/adapter/BUILD.gn | 1 - samgr/adapter/cmsis/thread_adapter.c | 2 +- samgr/source/BUILD.gn | 1 - samgr_client/BUILD.gn | 2 -- samgr_endpoint/BUILD.gn | 5 ----- samgr_server/BUILD.gn | 2 -- 8 files changed, 1 insertion(+), 14 deletions(-) diff --git a/communication/broadcast/BUILD.gn b/communication/broadcast/BUILD.gn index 2da670e..12f060a 100755 --- a/communication/broadcast/BUILD.gn +++ b/communication/broadcast/BUILD.gn @@ -28,7 +28,6 @@ if (ohos_kernel_type == "liteos_m") { "source/pub_sub_implement.c", ] public_configs = [ ":broadcast_public" ] - cflags = [ "-Wall" ] include_dirs = [] } } diff --git a/samgr/BUILD.gn b/samgr/BUILD.gn index 3b92be0..21fe370 100644 --- a/samgr/BUILD.gn +++ b/samgr/BUILD.gn @@ -42,7 +42,6 @@ if (ohos_kernel_type == "liteos_m") { ] public_configs = [ ":samgr_public" ] - cflags = [ "-Wall" ] include_dirs = [ "//base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite" ] diff --git a/samgr/adapter/BUILD.gn b/samgr/adapter/BUILD.gn index c6f339a..422d52c 100755 --- a/samgr/adapter/BUILD.gn +++ b/samgr/adapter/BUILD.gn @@ -29,7 +29,6 @@ if (ohos_kernel_type == "liteos_m") { ] public_configs = [ ":samgr_adapter_public" ] - cflags = [ "-Wall" ] include_dirs = [ "//kernel/liteos_m/kal/", diff --git a/samgr/adapter/cmsis/thread_adapter.c b/samgr/adapter/cmsis/thread_adapter.c index 32a557e..0e0708d 100755 --- a/samgr/adapter/cmsis/thread_adapter.c +++ b/samgr/adapter/cmsis/thread_adapter.c @@ -51,7 +51,7 @@ void MUTEX_GlobalUnlock(void) ThreadId THREAD_Create(Runnable run, void *argv, const ThreadAttr *attr) { - osThreadAttr_t taskAttr = {attr->name, 0, NULL, 0, NULL, attr->stackSize, attr->priority, 0, 0}; + osThreadAttr_t taskAttr = {attr->name, 0, NULL, 0, NULL, attr->stackSize, (osPriority_t)(attr->priority), 0, 0}; return (ThreadId)osThreadNew((osThreadFunc_t)run, argv, &taskAttr); } diff --git a/samgr/source/BUILD.gn b/samgr/source/BUILD.gn index d46e29d..56f759e 100755 --- a/samgr/source/BUILD.gn +++ b/samgr/source/BUILD.gn @@ -35,7 +35,6 @@ if (ohos_kernel_type == "liteos_m") { ] public_configs = [ ":samgr_source_public" ] - cflags = [ "-Wall" ] public_deps = [ "//foundation/distributedschedule/samgr_lite/samgr/adapter:samgr_adapter", diff --git a/samgr_client/BUILD.gn b/samgr_client/BUILD.gn index 1052f1f..112df79 100644 --- a/samgr_client/BUILD.gn +++ b/samgr_client/BUILD.gn @@ -41,8 +41,6 @@ if (!enable_ohos_distributedschedule_samgr_lite_rpc_mini) { defines = [ "MINI_SAMGR_LITE_RPC" ] sources = [ "source/remote_register_rpc.c" ] - cflags = [ "-Wall" ] - include_dirs = [ "../samgr_server/source", "../samgr_endpoint/source", diff --git a/samgr_endpoint/BUILD.gn b/samgr_endpoint/BUILD.gn index 8f3af27..0a6dc65 100644 --- a/samgr_endpoint/BUILD.gn +++ b/samgr_endpoint/BUILD.gn @@ -115,8 +115,6 @@ if (!enable_ohos_distributedschedule_samgr_lite_rpc_mini) { "source/token_bucket.c", ] - cflags = [ "-Wall" ] - if (ohos_kernel_type == "linux") { defines = [ "_GNU_SOURCE", @@ -137,10 +135,7 @@ if (!enable_ohos_distributedschedule_samgr_lite_rpc_mini) { source_set("store_source") { sources = [ "source/sa_store.c" ] - cflags = [ "-Wall" ] - configs += [ ":endpoint_internal" ] - public_configs = [ ":endpoint_public" ] public_deps = [ "//foundation/communication/ipc/interfaces/innerkits/c/dbinder:dbinder", diff --git a/samgr_server/BUILD.gn b/samgr_server/BUILD.gn index 799fbf0..1173b5a 100644 --- a/samgr_server/BUILD.gn +++ b/samgr_server/BUILD.gn @@ -48,8 +48,6 @@ if (!enable_ohos_distributedschedule_samgr_lite_rpc_mini) { defines = [ "MINI_SAMGR_LITE_RPC" ] sources = [ "source/samgr_server_rpc.c" ] - cflags = [ "-Wall" ] - include_dirs = [ "../samgr_endpoint/source", "//foundation/distributedschedule/samgr_lite/interfaces/kits/samgr", -- Gitee