Fix build error caused by enabled extra compiler warnings
authorPetr Štetiar <ynezz@true.cz>
Tue, 25 Jun 2019 14:43:18 +0000 (16:43 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 25 Jun 2019 14:43:18 +0000 (16:43 +0200)
 nmea.c:257:16: error: comparison between signed and
     unsigned integer expressions [-Werror=sign-compare]

Signed-off-by: Petr Štetiar <ynezz@true.cz>
nmea.c

diff --git a/nmea.c b/nmea.c
index 42be71eec1d0829d8d660cf554acb38e12589d7b..e2b2937070eb6aa7bad7d16b6bed04f33cd05025 100644 (file)
--- a/nmea.c
+++ b/nmea.c
@@ -233,7 +233,8 @@ static void
 nmea_process(char *a)
 {
        char *csum;
-       int cnt, i;
+       int cnt;
+       unsigned int i;
 
        if (strncmp(a, "$GP", 3))
                return;