From a9786c637c2eaae55374f4d0f57514d40cc59174 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Thu, 1 Feb 2018 23:14:59 +0100 Subject: [PATCH] Silence some compiler warnings. --- src/FDM/LaRCsim/uiuc_aero.c | 2 +- src/Scripting/nasal-props.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/LaRCsim/uiuc_aero.c b/src/FDM/LaRCsim/uiuc_aero.c index c59730e3c..57a9bc7c8 100644 --- a/src/FDM/LaRCsim/uiuc_aero.c +++ b/src/FDM/LaRCsim/uiuc_aero.c @@ -92,7 +92,7 @@ void uiuc_aero_2_wrapper( SCALAR dt, int Initialize ) void uiuc_wind_2_wrapper( SCALAR dt, int Initialize ) { if (Initialize == 0) - uiuc_wind_routine(dt); + uiuc_wind_routine(); } void uiuc_engine_2_wrapper( SCALAR dt, int Initialize ) diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 5b2f9bf3f..b7612dec5 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -431,7 +431,7 @@ static naRef f_setChildrenHelper(naContext c, SGPropertyNode_ptr node, char* nam char nameBuf[1024]; for (int i = 0; i < naVec_size(val); i++) { const auto len = ::snprintf(nameBuf, sizeof(nameBuf), "%s[%i]", name, i); - assert(len < sizeof(nameBuf)); + assert(len < (int) sizeof(nameBuf)); ret = f_setChildrenHelper(c, node, nameBuf, naVec_get(val, i)); } } else if (naIsNil(val)) {