[ntpsec commit] Fix another clump of warnings.

Hal Murray murray at ntpsec.org
Sun Oct 4 11:09:22 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    4aefd1cbe51f77e7eb471484988863d3f255928d
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=4aefd1cbe51f77e7eb471484988863d3f255928d

Author:    Hal Murray <hmurray at megapathdsl.net>
Date:      Sun Oct  4 04:08:03 2015 -0700

Fix another clump of warnings.

Unused variables not detected on Linux.
Found by cmake on FreeBSD.

---

 libparse/clk_varitext.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libparse/clk_varitext.c b/libparse/clk_varitext.c
index 09ddaf5..5a7d281 100644
--- a/libparse/clk_varitext.c
+++ b/libparse/clk_varitext.c
@@ -49,12 +49,14 @@
 # include "ntp_stdlib.h"
 # include <stdio.h>
 
+/* Not used.  Comment out to avoid warnings
 static const uint8_t VT_INITIALISED      = 0x01;
 static const uint8_t VT_SYNCHRONISED     = 0x02;
 static const uint8_t VT_ALARM_STATE      = 0x04;
-static const uint8_t VT_BST              = 0x08;
 static const uint8_t VT_SEASON_CHANGE    = 0x10;
 static const uint8_t VT_LAST_TELEGRAM_OK = 0x20;
+*/
+static const uint8_t VT_BST              = 0x08;
 
 /*
  * The Varitext receiver sends a datagram in the following format every minute



More information about the vc mailing list