mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-13 02:05:43 +00:00
sntp_process: fixed unused variable if sub-second time info is not used
This commit is contained in:
parent
bf510fee51
commit
d36306e30b
@ -318,6 +318,7 @@ sntp_process(const struct sntp_timestamps *timestamps)
|
|||||||
#endif /* SNTP_COMP_ROUNDTRIP */
|
#endif /* SNTP_COMP_ROUNDTRIP */
|
||||||
|
|
||||||
SNTP_SET_SYSTEM_TIME_NTP(sec, frac);
|
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",
|
LWIP_DEBUGF(SNTP_DEBUG_TRACE, ("sntp_process: %s, %" U32_F " us\n",
|
||||||
sntp_format_time(sec), SNTP_FRAC_TO_US(frac)));
|
sntp_format_time(sec), SNTP_FRAC_TO_US(frac)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user