Fix warnings identified by gcc.
This commit is contained in:
parent
5d9faee463
commit
ba088d9f1e
2 changed files with 6 additions and 1 deletions
|
@ -258,7 +258,11 @@ void YASim::update(double dt)
|
|||
// ground. Calculate a cartesian coordinate for the ground under
|
||||
// us, find the (geodetic) up vector normal to the ground, then
|
||||
// use that to find the final (radius) term of the plane equation.
|
||||
float v[3] = { get_uBody(), get_vBody(), get_wBody() };
|
||||
float v[3] = {
|
||||
static_cast<float>(get_uBody()),
|
||||
static_cast<float>(get_vBody()),
|
||||
static_cast<float>(get_wBody())
|
||||
};
|
||||
float lat = get_Latitude(); float lon = get_Longitude();
|
||||
float alt = get_Altitude() * FT2M; double xyz[3];
|
||||
sgGeodToCart(lat, lon, alt, xyz);
|
||||
|
|
|
@ -203,6 +203,7 @@ private:
|
|||
case osg::INFO: return SG_INFO;
|
||||
case osg::DEBUG_FP:
|
||||
case osg::DEBUG_INFO: return SG_DEBUG;
|
||||
default: return SG_ALERT;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue