From b099769daea37a8c8c2768ad11491221cca5106c Mon Sep 17 00:00:00 2001 From: Shigeru KANEMOTO Date: Fri, 22 Jan 2016 17:36:12 +0900 Subject: [PATCH] Fix: warning: variable 'nsat' set but not used --- gpssim.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gpssim.c b/gpssim.c index 4473be2..be7132e 100644 --- a/gpssim.c +++ b/gpssim.c @@ -1558,7 +1558,6 @@ int main(int argc, char *argv[]) double llh[3]; int i; - int nsat; channel_t chan[MAX_CHAN]; double elvmask = 0.0; // in degree @@ -1903,7 +1902,7 @@ int main(int argc, char *argv[]) grx = g0; // Allocate visible satellites - nsat = allocateChannel(chan, eph[ieph], grx, xyz[0], elvmask); + allocateChannel(chan, eph[ieph], grx, xyz[0], elvmask); for(i=0; i