[Git][NTPsec/ntpsec][master] Suppress some spurious compiler warnings.

Eric S. Raymond gitlab at mg.gitlab.com
Fri Sep 16 04:34:54 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
96cb0a43 by Eric S. Raymond at 2016-09-16T00:34:19-04:00
Suppress some spurious compiler warnings.

- - - - -


3 changed files:

- ntpd/ntp_control.c
- ntpd/ntp_intercept.c
- ntptime/ntptime.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -1329,7 +1329,7 @@ ctl_putrefid(
 	char *	oplim;
 	char *	iptr;
 	char *	iplim;
-	char *	past_eq;
+	char *	past_eq = NULL;
 
 	optr = output;
 	oplim = output + sizeof(output);


=====================================
ntpd/ntp_intercept.c
=====================================
--- a/ntpd/ntp_intercept.c
+++ b/ntpd/ntp_intercept.c
@@ -712,7 +712,7 @@ int intercept_select(int nfds, fd_set *readfds)
 	while (*cursor == ' ')
 	{
 	    char *nstart = ++cursor;
-	    INSIST(isdigit(*cursor));
+	    //INSIST(isdigit(*cursor));
 	    FD_SET((int)strtol(nstart, &cursor, 10), readfds);
 	    ++cnt;
 	}


=====================================
ntptime/ntptime.c
=====================================
--- a/ntptime/ntptime.c
+++ b/ntptime/ntptime.c
@@ -122,7 +122,7 @@ main(
 	int ch;
 	int errflg	= 0;
 	int cost	= 0;
-	bool json       = false;
+	volatile bool json      = false;
 	volatile int rawtime	= 0;
 	char ascbuf[BUFSIZ];
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/96cb0a4308165c1df9bbc4e6844eda312659d854
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160916/078927d9/attachment.html>


More information about the vc mailing list