Skip to content
Snippets Groups Projects
Commit 6671cc18 authored by Esben Haabendal's avatar Esben Haabendal
Browse files

sdk: Fix warning/error in faultlogger


Signed-off-by: default avatarEsben Haabendal <esben@geanix.com>
parent ba13cd34
No related branches found
No related tags found
1 merge request!91Fix ActsFautLoggerTest
Pipeline #14879 passed
......@@ -4,3 +4,4 @@
SRC_URI += "file://third_party/libunwind/BUILD.gn;subdir=src/overlay"
SRC_URI += "file://patches/no-processdump.patch;apply=no;subdir=src"
SRC_URI += "file://patches/hiviewdfx_faultloggerd_local_unwind_unused_variables.patch;apply=no;subdir=src"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
Patch for //base/hiviewdfx/faultloggerd git repository of OpenHarmony 3.0 codebase.
This fixes warning about unused variables when using musl, which (depending on
compiler version) can be promoted to an error, and thus break compilation.
Signed-off-by: Esben Haabendal <esben@geanix.com>
Upstream-Status: Pending
--- a/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/dfx_signal_handler.c 2023-02-20 10:19:50.406718524 +0100
+++ b/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/dfx_signal_handler.c 2023-02-20 10:20:41.980303697 +0100
@@ -79,8 +79,10 @@
static struct ProcessDumpRequest g_request;
static void *g_reservedChildStack;
static pthread_mutex_t g_signalHandlerMutex = PTHREAD_MUTEX_INITIALIZER;
+#ifndef DFX_LOCAL_UNWIND
static pthread_mutex_t g_dumpMutex = PTHREAD_MUTEX_INITIALIZER;
static int g_pipefd[2] = {-1, -1};
+#endif
static BOOL g_hasInit = FALSE;
enum DumpPreparationStage {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment