From d64dfb550439a191f08b9aa8005a43010d3713a6 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 18 Jan 2019 16:02:00 -0800 Subject: [PATCH] Fixed compiler warnings on some toolchains --- makefile | 1 + meshcore/agentcore.c | 2 +- microscript/ILibDuktape_Debugger.h | 3 ++- microscript/ILibDuktape_Helpers.c | 3 ++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index e8897fb..42ce878 100644 --- a/makefile +++ b/makefile @@ -323,6 +323,7 @@ cleanbin: rm -f $(EXENAME)_x86-64_nokvm rm -f $(EXENAME)_arm rm -f $(EXENAME)_armhf + rm -f $(EXENAME)_arm-linaro rm -f $(EXENAME)_mips rm -f $(EXENAME)_osx-x86-64 rm -f $(EXENAME)_pi diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index e89897a..454a16a 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -2880,7 +2880,7 @@ void checkForEmbeddedMSH(MeshAgentHostContainer *agent) #endif if (msh != NULL) { - fwrite(eMSH, 1, mshLen, msh); + ignore_result(fwrite(eMSH, 1, mshLen, msh)); fclose(msh); } } diff --git a/microscript/ILibDuktape_Debugger.h b/microscript/ILibDuktape_Debugger.h index 8c3dc7a..f187781 100644 --- a/microscript/ILibDuktape_Debugger.h +++ b/microscript/ILibDuktape_Debugger.h @@ -22,4 +22,5 @@ limitations under the License. void ILibDuktape_Debugger_Init(duk_context *ctx, unsigned short debugPort); void ILibDuktape_Debugger_SetScript(char *js, int jsLen, char *fileName, int fileNameLen); -#endif \ No newline at end of file +#endif + diff --git a/microscript/ILibDuktape_Helpers.c b/microscript/ILibDuktape_Helpers.c index 3cab2a8..e34a372 100644 --- a/microscript/ILibDuktape_Helpers.c +++ b/microscript/ILibDuktape_Helpers.c @@ -926,4 +926,5 @@ void ILibDuktape_Log_Object(duk_context *ctx, duk_idx_t i, char *meta) duk_pop_2(ctx); } duk_pop(ctx); -} \ No newline at end of file +} +