From 4bc552fba2eefa73be96fd6d2e97d76d5e4a36d8 Mon Sep 17 00:00:00 2001 From: malavan Date: Mon, 19 Jul 2021 17:31:24 +0000 Subject: [PATCH] dd comment and set eip unused Former-commit-id: 72429c21067318696897c26783f654eb7bc6040f --- src/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index 1a0926c9d..7a7226589 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -1610,7 +1610,7 @@ 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(void * __unused eip, int uplevel) { +void logStackTrace(UNUSED void * eip, int uplevel) { int fd = openDirectLogFiledes(); if (fd == -1) return; /* If we can't log there is anything to do. */