Author: ngie
Date: Sun May 28 04:15:57 2017
New Revision: 319041
URL: https://svnweb.freebsd.org/changeset/base/319041

Log:
  getproto_test: fix -Wunused warnings
  
  Mark unused parameters __unused in functions.
  
  MFC after:    3 days
  Sponsored by: Dell EMC Isilon

Modified:
  head/lib/libc/tests/nss/getproto_test.c

Modified: head/lib/libc/tests/nss/getproto_test.c
==============================================================================
--- head/lib/libc/tests/nss/getproto_test.c     Sun May 28 04:15:05 2017        
(r319040)
+++ head/lib/libc/tests/nss/getproto_test.c     Sun May 28 04:15:57 2017        
(r319041)
@@ -288,7 +288,7 @@ protoent_fill_test_data(struct protoent_
 }
 
 static int
-protoent_test_correctness(struct protoent *pe, void *mdata)
+protoent_test_correctness(struct protoent *pe, void *mdata __unused)
 {
        printf("testing correctness with the following data:\n");
        dump_protoent(pe);
@@ -388,7 +388,7 @@ protoent_test_getprotobynumber(struct pr
 }
 
 static int
-protoent_test_getprotoent(struct protoent *pe, void *mdata)
+protoent_test_getprotoent(struct protoent *pe, void *mdata __unused)
 {
        /* Only correctness can be checked when doing 1-pass test for
         * getprotoent(). */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to