[Git][NTPsec/ntpsec][master] Silence warnings regarding unused function parameters

Matt Selsky gitlab at mg.gitlab.com
Sat Feb 2 22:21:55 UTC 2019


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
2da98705 by Matt Selsky at 2019-02-02T22:18:55Z
Silence warnings regarding unused function parameters

../../ntpd/ntsd.c:3:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char *argv[])
             ^
../../ntpd/ntsd.c:3:26: warning: unused parameter 'argv' [-Wunused-parameter]
int main(int argc, char *argv[])
                         ^
2 warnings generated.

- - - - -


1 changed file:

- ntpd/ntsd.c


Changes:

=====================================
ntpd/ntsd.c
=====================================
@@ -1,6 +1,11 @@
 #include <stdlib.h>
 
+#include "ntp_types.h"
+
 int main(int argc, char *argv[])
 {
+    UNUSED_ARG(argc);
+    UNUSED_ARG(argv);
+
     exit(0);
 }



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2da9870564d66e2e1e7748753119a4ae23c4a0a7
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/20190202/277b2c66/attachment.html>


More information about the vc mailing list