From 03fd6f47715774e2aebbb429663ac553da2fa397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 14 Dec 2023 07:30:15 -0800 Subject: [PATCH] wasm: Fix warnings. --- src/debug.cpp | 8 +++++++- src/filepath.cpp | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/debug.cpp b/src/debug.cpp index d9c1508..c58602c 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -43,7 +43,13 @@ namespace bx // NativeClient: NaCl module load failed: Validation failure. File violates Native Client safety rules. __asm__ ("int $3"); #elif BX_PLATFORM_EMSCRIPTEN - emscripten_log(EM_LOG_CONSOLE | EM_LOG_ERROR | EM_LOG_C_STACK | EM_LOG_JS_STACK | EM_LOG_DEMANGLE, "debugBreak!"); + emscripten_log(0 + | EM_LOG_CONSOLE + | EM_LOG_ERROR + | EM_LOG_C_STACK + | EM_LOG_JS_STACK + , "debugBreak!" + ); // Doing emscripten_debugger() disables asm.js validation due to an emscripten bug //emscripten_debugger(); EM_ASM({ debugger; }); diff --git a/src/filepath.cpp b/src/filepath.cpp index 836e2c2..7bd3527 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -224,6 +224,7 @@ namespace bx bool result = _NSGetExecutablePath(_out, &len); return 0 == result; #else + BX_UNUSED(_out, _inOutSize); return false; #endif // BX_PLATFORM_* }