From: curt Date: Fri, 19 Sep 2003 20:03:43 +0000 (+0000) Subject: Fix a couple compiler warnings. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2625867634717cc42f7935379b461bb9acb081f;p=flightgear.git Fix a couple compiler warnings. --- diff --git a/src/Main/util.cxx b/src/Main/util.cxx index c6ab0aa5c..e2c12cd74 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -40,17 +40,19 @@ SG_USING_STD(vector); void fgDefaultWeatherValue (const char * propname, double value) { - int i; + unsigned int i; SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true); vector entries = branch->getChildren("entry"); - for (i = 0; i < entries.size(); i++) + for (i = 0; i < entries.size(); i++) { entries[i]->setDoubleValue(propname, value); + } branch = fgGetNode("/environment/config/aloft", true); entries = branch->getChildren("entry"); - for (i = 0; i < entries.size(); i++) + for (i = 0; i < entries.size(); i++) { entries[i]->setDoubleValue(propname, value); + } }