1
0
Fork 0

Fix warnings identified by gcc.

This commit is contained in:
Thomas Geymayer 2013-07-04 23:07:10 +02:00
parent 5d9faee463
commit ba088d9f1e
2 changed files with 6 additions and 1 deletions

View file

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

View file

@ -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;
}
}
};