From 1518e4621bb5358b70461b47fbd7056caa8ee515 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 5 Jun 2022 16:10:15 +0100 Subject: [PATCH] Fix unused function warning in crash logger on Emscripten --- src/os/unix/crashlog_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp index 8e4313cd85..44f579a257 100644 --- a/src/os/unix/crashlog_unix.cpp +++ b/src/os/unix/crashlog_unix.cpp @@ -178,6 +178,7 @@ static bool ExecReadStdout(const char *file, char *const *args, char *&buffer, c } } +#if defined(WITH_DBG_GDB) static bool ExecReadStdoutThroughFile(const char *file, char *const *args, char *&buffer, const char *last) { ExecReadNullHandler nulls; @@ -238,6 +239,7 @@ static bool ExecReadStdoutThroughFile(const char *file, char *const *args, char return true; } } +#endif /* WITH_DBG_GDB */ /** * Unix implementation for the crash logger.