From d36306e30b369e75de5ac211a7cf738a72b10b64 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 4 May 2017 15:49:12 +0200 Subject: [PATCH] sntp_process: fixed unused variable if sub-second time info is not used --- src/apps/sntp/sntp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/apps/sntp/sntp.c b/src/apps/sntp/sntp.c index 0b5a5ae6..edbeff1a 100644 --- a/src/apps/sntp/sntp.c +++ b/src/apps/sntp/sntp.c @@ -318,6 +318,7 @@ sntp_process(const struct sntp_timestamps *timestamps) #endif /* SNTP_COMP_ROUNDTRIP */ SNTP_SET_SYSTEM_TIME_NTP(sec, frac); + LWIP_UNUSED_ARG(frac); /* might be unused if only seconds are set */ LWIP_DEBUGF(SNTP_DEBUG_TRACE, ("sntp_process: %s, %" U32_F " us\n", sntp_format_time(sec), SNTP_FRAC_TO_US(frac))); }