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.
This commit is contained in:
parent
bec3a0c822
commit
f5e73be11b
3 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue