sntp_process: fixed unused variable if sub-second time info is not used

This commit is contained in:
goldsimon 2017-05-04 15:49:12 +02:00
parent bf510fee51
commit d36306e30b

View File

@ -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)));
}