From ba088d9f1e1ff6df8c65e119801aaa2f2ec5254a Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 4 Jul 2013 23:07:10 +0200 Subject: [PATCH] Fix warnings identified by gcc. --- src/FDM/YASim/YASim.cxx | 6 +++++- src/Viewer/fg_os_osgviewer.cxx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index fdd8dbf10..03f55217b 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -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(get_uBody()), + static_cast(get_vBody()), + static_cast(get_wBody()) + }; float lat = get_Latitude(); float lon = get_Longitude(); float alt = get_Altitude() * FT2M; double xyz[3]; sgGeodToCart(lat, lon, alt, xyz); diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index 22526d0db..edd2e6ce2 100644 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -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; } } }; -- 2.39.5