Casting to void is the canonical way of marking a variable as
potentially unused.
This commit is contained in:
parent
b81bd2ac92
commit
685add8053
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: loadfile_aout.c,v 1.14 2009/08/16 13:26:16 matt Exp $ */
|
||||
/* $NetBSD: loadfile_aout.c,v 1.15 2014/02/20 00:29:03 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -96,8 +96,8 @@ loadfile_aout(int fd, struct exec *x, u_long *marks, int flags)
|
||||
int sub;
|
||||
ssize_t nr;
|
||||
|
||||
/* some ports dont use the offset */
|
||||
offset = offset;
|
||||
/* some ports don't use the offset */
|
||||
(void)offset;
|
||||
|
||||
/* In OMAGIC and NMAGIC, exec header isn't part of text segment */
|
||||
if (magic == OMAGIC || magic == NMAGIC)
|
||||
|
Loading…
Reference in New Issue
Block a user