aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-archive.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-06-06 13:59:28 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-06-07 13:46:38 +0100
commitf5e73be11b24b6c4b7ecec5f762784c4bb40ec18 (patch)
tree0df2892df0378cca42906b8a53086425f8a13525 /libctf/ctf-archive.c
parentbec3a0c8224a76b315c1742b8254d04ab06885ac (diff)
downloadgdb-f5e73be11b24b6c4b7ecec5f762784c4bb40ec18.zip
gdb-f5e73be11b24b6c4b7ecec5f762784c4bb40ec18.tar.gz
gdb-f5e73be11b24b6c4b7ecec5f762784c4bb40ec18.tar.bz2
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.
Diffstat (limited to 'libctf/ctf-archive.c')
-rw-r--r--libctf/ctf-archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c
index 2414493..5c16922 100644
--- a/libctf/ctf-archive.c
+++ b/libctf/ctf-archive.c
@@ -681,7 +681,7 @@ static int arc_mmap_unmap (void *header, size_t headersz, const char **errmsg)
}
#else
/* Map the header in. Only used on new, empty files. */
-static void *arc_mmap_header (int fd, size_t headersz)
+static void *arc_mmap_header (int fd _libctf_unused_, size_t headersz)
{
void *hdr;
if ((hdr = malloc (headersz)) == NULL)