]> git.mxchange.org Git - flightgear.git/commitdiff
Cleaned up a couple compiler warnings.
authorcurt <curt>
Mon, 11 Mar 2002 15:41:39 +0000 (15:41 +0000)
committercurt <curt>
Mon, 11 Mar 2002 15:41:39 +0000 (15:41 +0000)
src/Sound/fg_fx.cxx
src/Sound/fg_sound.cxx

index f76bfdd94a0fdaab5205cb3bb53ae4f074aa7d71..2c7f5626d2e67d919f94fec7d2415b6f35fc111d 100644 (file)
@@ -75,7 +75,7 @@ FGFX::init()
       _sound.push_back(sound);
    }
 
-   for (i = 0; i < _sound.size(); i++ ) {
+   for (i = 0; i < (int)_sound.size(); i++ ) {
       _sound[i]->init();
    }
 }
@@ -93,7 +93,7 @@ FGFX::unbind ()
 void
 FGFX::update (int dt)
 {
-   for (int i = 0; i < _sound.size(); i++ )
+   for (unsigned int i = 0; i < _sound.size(); i++ )
       _sound[i]->update(dt);
 }
 
index 86e05fd2bdbc7083750caa91d93ff7aa199e2492..aa22b6fed01cfc8be933735aaadffe60c40e17c8 100644 (file)
@@ -64,13 +64,13 @@ static const struct {
 };
 
 FGSound::FGSound(const SGPropertyNode * node)
-  : _name(""),
+  : _node(node),
     _sample(NULL),
-    _factor(1.0),
     _active(false),
     _mode(FGSound::ONCE),
     _type(FGSound::LEVEL),
-    _node(node)
+    _name(""),  
+    _factor(1.0)
 {
 }
 
@@ -138,7 +138,7 @@ FGSound::init()
    //
    // set volume properties
    //
-   int i;
+   unsigned int i;
    float v = 0.0;
    vector<const SGPropertyNode *> kids = _node->getChildren("volume");
    for (i = 0; (i < kids.size()) && (i < FGSound::MAXPROP); i++) {