diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-04-30 23:04:53 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-04-30 23:05:37 -0400 |
commit | 321c7710c3f3a17d56e9e5eede9aebadbaf16e3e (patch) | |
tree | fae8712111ede1cd948e8846a3bbdafeb8dfd45a /driver_sirf.c | |
parent | 5aa7ce8d00de15c832ab90113ef5b08221746e7f (diff) | |
download | gpsd-321c7710c3f3a17d56e9e5eede9aebadbaf16e3e.tar.gz |
Fix static-checker warnings. All regression tests pass.
cppchecker now finds variables that could have reduced scope;
that's most of these.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r-- | driver_sirf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_sirf.c b/driver_sirf.c index ce07052a..fbb6a4b8 100644 --- a/driver_sirf.c +++ b/driver_sirf.c @@ -346,10 +346,10 @@ static bool sirf_to_nmea(struct gps_device_t *session, speed_t speed) static void sirfbin_mode(struct gps_device_t *session, int mode) { - char parity = '0'; if (mode == MODE_NMEA) { (void)sirf_to_nmea(session, session->gpsdata.dev.baudrate); } else if (mode == MODE_BINARY) { + char parity = '0'; switch (session->gpsdata.dev.parity) { default: case 'N': |