From: Petr Štetiar Date: Tue, 25 Jun 2019 14:43:18 +0000 (+0200) Subject: Fix build error caused by enabled extra compiler warnings X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=198c06051dd020a0f5776f3a80ebda7ee0659d90;p=project%2Fugps.git Fix build error caused by enabled extra compiler warnings nmea.c:257:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] Signed-off-by: Petr Štetiar --- diff --git a/nmea.c b/nmea.c index 42be71e..e2b2937 100644 --- 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;