Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Casting to void is the canonical way of markin...
details: https://anonhg.NetBSD.org/src/rev/348766c0a13c
branches: trunk
changeset: 326831:348766c0a13c
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 20 00:29:03 2014 +0000
description:
Casting to void is the canonical way of marking a variable as
potentially unused.
diffstat:
sys/lib/libsa/loadfile_aout.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 98890bc31d75 -r 348766c0a13c sys/lib/libsa/loadfile_aout.c
--- a/sys/lib/libsa/loadfile_aout.c Wed Feb 19 23:21:02 2014 +0000
+++ b/sys/lib/libsa/loadfile_aout.c Thu Feb 20 00:29:03 2014 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index