From 3520038fe3d4b5a297fe5e312faf968b477de63a Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 13 Oct 2009 10:37:06 +0000 Subject: [PATCH] Use log macro to silent warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3078 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/nmea.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bertos/net/nmea.c b/bertos/net/nmea.c index b0cc09b0..2dc32d58 100644 --- a/bertos/net/nmea.c +++ b/bertos/net/nmea.c @@ -254,7 +254,8 @@ void gpgga_callout(nmeap_context_t *context, void *data, void *user_data) { (void)context; (void)user_data; - NmeaGga *gga = (NmeaGga *)data; + (void)data; + LOG_INFOB(NmeaGga *gga = (NmeaGga *)data;); LOG_INFO("Found GPGGA message %ld %ld %d %lu %d %d %d %d\n", (long)gga->latitude, @@ -274,7 +275,8 @@ void gprmc_callout(nmeap_context_t *context, void *data, void *user_data) { (void)context; (void)user_data; - NmeaRmc *rmc = (NmeaRmc *)data; + (void)data; + LOG_INFOB(NmeaRmc *rmc = (NmeaRmc *)data;); LOG_INFO("Found GPRMC message %lu %c %ld %ld %d %d %d\n", rmc->time, @@ -293,7 +295,8 @@ void gpgsv_callout(nmeap_context_t *context, void *data, void *user_data) { (void)context; (void)user_data; - NmeaGsv *gsv = (NmeaGsv *)data; + (void)data; + LOG_INFOB(NmeaGsv *gsv = (NmeaGsv *)data;); LOG_INFO("Found GPGSV message %d %d %d\n", gsv->tot_message, gsv->message_num, gsv->tot_svv); @@ -308,7 +311,8 @@ void gpvtg_callout(nmeap_context_t *context, void *data, void *user_data) { (void)context; (void)user_data; - NmeaVtg *vtg = (NmeaVtg *)data; + (void)data; + LOG_INFOB(NmeaVtg *vtg = (NmeaVtg *)data;); LOG_INFO("Found GPVTG message %d %d %d\n", vtg->track_good, vtg->knot_speed, vtg->km_speed); } -- 2.25.1