From 3e26a0996f1d28b8fe740250411e022fedd406f4 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 18 Jan 2021 11:02:41 -0800 Subject: [PATCH] fixed compiler warnings --- meshcore/agentcore.c | 2 +- microscript/ILibDuktape_ChildProcess.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index c605753..57ae144 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -1961,7 +1961,7 @@ char* MeshAgent_MakeAbsolutePathEx(char *basePath, char *localPath, int escapeBa sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s\\%s", wd, basePath + i); #else int i = ILibString_LastIndexOf(basePath, basePathLen, "/", 1) + 1; - getcwd(ILibScratchPad, sizeof(ILibScratchPad)); + ignore_result((uintptr_t)getcwd(ILibScratchPad, sizeof(ILibScratchPad))); sprintf_s(ILibScratchPad2, sizeof(ILibScratchPad2), "%s/%s", ILibScratchPad, basePath + i); #endif } diff --git a/microscript/ILibDuktape_ChildProcess.c b/microscript/ILibDuktape_ChildProcess.c index 6907494..756830e 100644 --- a/microscript/ILibDuktape_ChildProcess.c +++ b/microscript/ILibDuktape_ChildProcess.c @@ -553,7 +553,7 @@ duk_ret_t ILibDuktape_ChildProcess_execve(duk_context *ctx) #endif duk_push_array(ctx); // [WCHAR_ARRAY] - args = (char**)ILibMemory_SmartAllocate(sizeof(char*) * (1 + duk_get_length(ctx, 1))); + args = (void**)ILibMemory_SmartAllocate(sizeof(char*) * (1 + duk_get_length(ctx, 1))); for (i = 0; i < (int)duk_get_length(ctx, 1); ++i) { duk_get_prop_index(ctx, 1, (duk_uarridx_t)i); // [WCHAR_ARRAY][arg]