[Git][NTPsec/ntpsec][master] Prevent compiler warning when HAVE_SYS_TIMEPPS_H is not defined.

Eric S. Raymond gitlab at mg.gitlab.com
Mon Nov 23 02:16:38 UTC 2015


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


Commits:
f026d835 by Eric S. Raymond at 2015-11-22T21:15:48Z
Prevent compiler warning when HAVE_SYS_TIMEPPS_H is not defined.

Resolves Gitlab issue #7

- - - - -


1 changed file:

- ntpfrob/pps-api.c


Changes:

=====================================
ntpfrob/pps-api.c
=====================================
--- a/ntpfrob/pps-api.c
+++ b/ntpfrob/pps-api.c
@@ -62,6 +62,7 @@ static int err(int out, const char *legend)
 void ppscheck(char *device)
 {
 #ifndef HAVE_SYS_TIMEPPS_H
+	(void)device;
  	fputs("ntpfrob: PPS is not available.\n", stderr);
 	exit(1);
 #else



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f026d835e0517daa69eb16b446f589510e3fc95a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151123/3e5bdc7e/attachment.html>


More information about the vc mailing list