未验证 提交 c9b53fd6 编写于 作者: O openharmony_ci 提交者: Gitee

!267 fix: compile warnning

Merge pull request !267 from 熊磊/init125_2
......@@ -13,8 +13,9 @@
* limitations under the License.
*/
#include "init.h"
#include "init_log.h"
#include "init_group_manager.h"
#include "init_jobs_internal.h"
#include "init_log.h"
#include "init_utils.h"
#ifndef __LINUX__
#include "init_stage.h"
......
......@@ -42,7 +42,7 @@ if (defined(ohos_lite)) {
sources = common_sources
include_dirs = common_include
defines = [ "_GNU_SOURCE" ]
deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_tools",
......@@ -56,7 +56,7 @@ if (defined(ohos_lite)) {
sources = common_sources
include_dirs = common_include
defines = [ "_GNU_SOURCE" ]
deps = [
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/utils:libinit_tools",
......
......@@ -29,6 +29,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
]
defines = [ "_GNU_SOURCE" ]
}
} else {
import("//build/ohos.gni")
......@@ -50,6 +51,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
......
......@@ -23,9 +23,9 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/interfaces/innerkits/include",
]
deps = [ "//base/startup/init_lite/services/log:init_log" ]
defines = [ "_GNU_SOURCE" ]
if (ohos_kernel_type == "linux") {
defines = [ "LINUX_WATCHDOG" ]
defines += [ "_GNU_SOURCE" ]
defines += [ "LINUX_WATCHDOG" ]
}
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册