Fix Clang static analyzer warnings about never read values

This commit is contained in:
Miroslav Lichvar
2013-10-07 16:10:25 +02:00
parent d5a9c1535e
commit 922e2fe23b
3 changed files with 5 additions and 4 deletions

View File

@@ -1548,6 +1548,8 @@ NCR_SlewTimes(NCR_Instance inst, struct timeval *when, double dfreq, double doff
#ifdef TRACEON
LOG(LOGS_INFO, LOGF_NtpCore, "rx prev=[%s] new=[%s]",
UTI_TimevalToString(&prev), UTI_TimevalToString(&inst->local_rx));
#else
(void)prev;
#endif
prev = inst->local_tx;
if (inst->local_tx.tv_sec || inst->local_tx.tv_usec)