[PATCH 1/2] ntpd: fix compilation warnings
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 20 02:23:47 UTC 2014
Applied, thanks!
On Sat, Jan 18, 2014 at 3:36 PM, Bartosz Golaszewski
<bartekgola at gmail.com> wrote:
> GCC complained about since_last_update being set but not used.
>
> Signed-off-by: Bartosz Golaszewski <bartekgola at gmail.com>
> ---
> networking/ntpd.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/networking/ntpd.c b/networking/ntpd.c
> index c4b0187..f1f99bb 100644
> --- a/networking/ntpd.c
> +++ b/networking/ntpd.c
> @@ -1328,7 +1328,9 @@ update_local_clock(peer_t *p)
> #if !USING_KERNEL_PLL_LOOP
> double freq_drift;
> #endif
> +#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
> double since_last_update;
> +#endif
> double etemp, dtemp;
>
> 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
> * and frequency errors.
> */
> +#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
> since_last_update = recv_time - G.reftime;
> +#endif
> #if !USING_KERNEL_PLL_LOOP
> freq_drift = 0;
> #endif
> --
> 1.7.10.4
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list