1
0
Fork 0

Silence some compiler warnings.

This commit is contained in:
ThorstenB 2018-02-01 23:14:59 +01:00
parent beecf005ce
commit a9786c637c
2 changed files with 2 additions and 2 deletions

View file

@ -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 )

View file

@ -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)) {