[Git][NTPsec/ntpsec][master] Address GitLab issue #368: warning on openbsd 6.0 with gcc 4.2.1

Eric S. Raymond gitlab at mg.gitlab.com
Mon Aug 21 12:09:37 UTC 2017


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


Commits:
e6eaa582 by Eric S. Raymond at 2017-08-21T08:09:02-04:00
Address GitLab issue #368: warning on openbsd 6.0 with gcc 4.2.1

- - - - -


1 changed file:

- libntp/ntp_dns.c


Changes:

=====================================
libntp/ntp_dns.c
=====================================
--- a/libntp/ntp_dns.c
+++ b/libntp/ntp_dns.c
@@ -160,6 +160,11 @@ static void* dns_lookup(void* arg)
 
 	kill(getpid(), SIGDNS);
 	pthread_exit(NULL);
+
+	/* Prevent compiler warning. 
+	 * More portable than an attribute or directive
+	 */  
+	return (void *)NULL;
 };
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e6eaa5829470cd485e3342dd283cec6cf8f8074e

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e6eaa5829470cd485e3342dd283cec6cf8f8074e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170821/c1f55b80/attachment.html>


More information about the vc mailing list