Skip to content

Commit

Permalink
Plugin/Geotest: Fix compiler warning (unused for increment)
Browse files Browse the repository at this point in the history
The increment is done manually in the loop body
  • Loading branch information
hbeni committed Aug 30, 2021
1 parent a5d58f0 commit 2d9f25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/mumble-plugin/test/geotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ int main (int argc, char **argv)
// Radio frequency model range test
std::unique_ptr<FGCom_radiowaveModel> radio_model = FGCom_radiowaveModel::selectModel(std::string(argv[7]));
printf(" conducting radio range test for model '%s':\n", radio_model->getType().c_str());
for (int pwr=0; pwr<=30; true) {
for (int pwr=0; pwr<=30;) {
struct fgcom_radiowave_signal sigStrengthAB = radio_model->getSignal(lat1, lon1, h1, lat2, lon2, h2, pwr);
struct fgcom_radiowave_signal sigStrengthBA = radio_model->getSignal(lat2, lon2, h2, lat1, lon1, h1, pwr);
//struct fgcom_radiowave_signal sigStrengthBA = radio_model->getSignal(lat2, lon2, h2, lat1, lon1, h1, pwr);
printf(" signal posA->posB @%iw = %.0f%% \n", pwr, sigStrengthAB.quality*100);
// its the same (it should at least) printf(" VHF signal posB->posA @%iw = %.0f% \n", pwr, sigStrengthBA.quality*100);
if (pwr < 5) { pwr++; }
Expand Down

0 comments on commit 2d9f25b

Please sign in to comment.