[Git][NTPsec/ntpsec][master] Squash unused warnings when HAVE_KERNEL_PLL not defined

Hal Murray gitlab at mg.gitlab.com
Tue Feb 14 10:56:25 UTC 2017


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
c1775931 by Hal Murray at 2017-02-14T02:55:25-08:00
Squash unused warnings when HAVE_KERNEL_PLL not defined

- - - - -


1 changed file:

- ntpd/ntp_loopfilter.c


Changes:

=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -158,8 +158,6 @@ bool	pll_control = false;	/* kernel support available */
 bool	kern_enable = true;	/* kernel support enabled */
 bool	hardpps_enable;		/* kernel PPS discipline enabled */
 bool	ext_enable;		/* external clock enabled */
-/* static int pps_stratum;		* pps stratum UNUSED  */
-static int kernel_status;		/* from ntp_adjtime */
 bool	allow_panic = false;	/* allow panic correction (-g) */
 bool	force_step_once = false; /* always step time once at startup (-G) */
 bool	mode_ntpdate = false;	/* exit on first clock set (-q) */
@@ -754,6 +752,7 @@ local_clock(
 	 * lad set the step threshold to something ridiculous.
 	 */
 	if (pll_control && kern_enable && freq_cnt == 0) {
+		static int kernel_status;	/* from ntp_adjtime */
 
 		/*
 		 * We initialize the structure for the ntp_adjtime()



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c1775931da9a80e9eafda38e909d7cdbd76ed1f9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170214/f11a053a/attachment.html>


More information about the vc mailing list