From 9436f68f56ad7af28d7f4a3a1f338471c5d3dc44 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 11 Mar 2002 15:41:39 +0000 Subject: [PATCH] Cleaned up a couple compiler warnings. --- src/Sound/fg_fx.cxx | 4 ++-- src/Sound/fg_sound.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index f76bfdd94..2c7f5626d 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -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); } diff --git a/src/Sound/fg_sound.cxx b/src/Sound/fg_sound.cxx index 86e05fd2b..aa22b6fed 100644 --- a/src/Sound/fg_sound.cxx +++ b/src/Sound/fg_sound.cxx @@ -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 kids = _node->getChildren("volume"); for (i = 0; (i < kids.size()) && (i < FGSound::MAXPROP); i++) { -- 2.39.5