diff --git a/communication/broadcast/BUILD.gn b/communication/broadcast/BUILD.gn index 2da670e92b2dc525c61729081e4da50dd5403bcb..12f060aa9ae67af1052a1afe94185bbbe1145168 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 3b92be0b3b8878f1df48678a2e5f54094fbaee64..21fe370388d6e4c9c3472469a2d9a0d3861fb9d0 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 c6f339a041f96dfbf9ba496c794cdb76f96144f9..422d52c1751059d2e11325f464a92042e115a33e 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 32a557eae824d8f91f9ed7a747494c195dce5047..0e0708d004087aaafccc4317b2940639f630811b 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 d46e29d1ed2a5ac97b1827665055367f09d6ffb1..56f759eeb0a8a900df13208eca39a51f7928ca8b 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 1052f1f1e3a3195d0d2e49eafff7ad6f9ca1c917..112df79a87e63abf97fcbee26f0727b1666472a4 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 8f3af27a9bd87b94d19bccd4037a246663177c9c..0a6dc65e7398ff590fa5374febb3ea398952b357 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 799fbf0a22478d1d1c6da2339ba0ddafb541a085..1173b5a69ba733ce93eb03de6c5ba61dfb882668 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",