From f5e73be11b24b6c4b7ecec5f762784c4bb40ec18 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Thu, 6 Jun 2019 13:59:28 +0100 Subject: libctf: mark various args as unused in the !HAVE_MMAP case Tested on x86_64-pc-linux-gnu, x86_64-unknown-freebsd12.0, sparc-sun-solaris2.11, i686-pc-cygwin, i686-w64-mingw32. libctf/ * ctf-archive.c (arc_mmap_header): Mark fd as potentially unused. * ctf-subr.c (ctf_data_protect): Mark both args as potentially unused. --- libctf/ctf-subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libctf/ctf-subr.c') diff --git a/libctf/ctf-subr.c b/libctf/ctf-subr.c index 09ec295..b897351 100644 --- a/libctf/ctf-subr.c +++ b/libctf/ctf-subr.c @@ -106,7 +106,7 @@ ctf_munmap (void *buf, size_t length _libctf_unused_) } void -ctf_data_protect (void *buf, size_t size) +ctf_data_protect (void *buf _libctf_unused_, size_t size _libctf_unused_) { #ifdef HAVE_MMAP /* Must be the same as the check in ctf_data_alloc(). */ -- cgit v1.1