[Git][NTPsec/ntpsec][master] Fix unused warnings in tests/ntpd/nts_client.c

Hal Murray gitlab at mg.gitlab.com
Tue Jun 25 08:53:06 UTC 2019



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
c104334c by Hal Murray at 2019-06-25T08:51:07Z
Fix unused warnings in tests/ntpd/nts_client.c

- - - - -


1 changed file:

- tests/ntpd/nts_client.c


Changes:

=====================================
tests/ntpd/nts_client.c
=====================================
@@ -260,8 +260,16 @@ TEST(nts_client, nts_client_process_response_core) {
 }
 
 /* Hacks to keep linker happy */
-void dns_take_server(struct peer *a, sockaddr_u *b) { return; }
-void dns_take_status(struct peer *a, DNS_Status b) { return; }
+void dns_take_server(struct peer *a, sockaddr_u *b) {
+  UNUSED_ARG(a);
+  UNUSED_ARG(b);
+  return;
+}
+void dns_take_status(struct peer *a, DNS_Status b) {
+  UNUSED_ARG(a);
+  UNUSED_ARG(b);
+  return;
+}
 
 TEST_GROUP_RUNNER(nts_client) {
   RUN_TEST_CASE(nts_client, nts_client_send_request_core);



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c104334c4f91f8757023994342dc9e81060da2c7
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/20190625/4ce03889/attachment.htm>


More information about the vc mailing list