From fe2292f1119d732f3d1bc5e583715956e7c0f34d Mon Sep 17 00:00:00 2001 From: malavan Date: Mon, 19 Jul 2021 17:32:38 +0000 Subject: [PATCH] dd comment and set eip unused Former-commit-id: 685b87e2ef4f67cd599b12e38b08f5b70b7a6c58 --- src/debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 7a7226589..d74772c29 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -1610,7 +1610,8 @@ void safe_write(int fd, const void *pv, ssize_t cb) * The eip argument is unused as libunwind only gets local context. * The uplevel argument indicates how many of the calling functions to skip. */ -void logStackTrace(UNUSED void * eip, int uplevel) { +void logStackTrace(void * eip, int uplevel) { + (void)eip;//UNUSED int fd = openDirectLogFiledes(); if (fd == -1) return; /* If we can't log there is anything to do. */