ntpd: fix compilation warnings
GCC complained about since_last_update being set but not used. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5c13ab41bb
commit
76ad7481b1
@ -1328,7 +1328,9 @@ update_local_clock(peer_t *p)
|
|||||||
#if !USING_KERNEL_PLL_LOOP
|
#if !USING_KERNEL_PLL_LOOP
|
||||||
double freq_drift;
|
double freq_drift;
|
||||||
#endif
|
#endif
|
||||||
|
#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
|
||||||
double since_last_update;
|
double since_last_update;
|
||||||
|
#endif
|
||||||
double etemp, dtemp;
|
double etemp, dtemp;
|
||||||
|
|
||||||
abs_offset = fabs(offset);
|
abs_offset = fabs(offset);
|
||||||
@ -1356,7 +1358,9 @@ update_local_clock(peer_t *p)
|
|||||||
* action is and defines how the system reacts to large time
|
* action is and defines how the system reacts to large time
|
||||||
* and frequency errors.
|
* and frequency errors.
|
||||||
*/
|
*/
|
||||||
|
#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
|
||||||
since_last_update = recv_time - G.reftime;
|
since_last_update = recv_time - G.reftime;
|
||||||
|
#endif
|
||||||
#if !USING_KERNEL_PLL_LOOP
|
#if !USING_KERNEL_PLL_LOOP
|
||||||
freq_drift = 0;
|
freq_drift = 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user