Module Name:    src
Committed By:   joerg
Date:           Thu Feb 20 00:29:03 UTC 2014

Modified Files:
        src/sys/lib/libsa: loadfile_aout.c

Log Message:
Casting to void is the canonical way of marking a variable as
potentially unused.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/lib/libsa/loadfile_aout.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/lib/libsa/loadfile_aout.c
diff -u src/sys/lib/libsa/loadfile_aout.c:1.14 src/sys/lib/libsa/loadfile_aout.c:1.15
--- src/sys/lib/libsa/loadfile_aout.c:1.14	Sun Aug 16 13:26:16 2009
+++ src/sys/lib/libsa/loadfile_aout.c	Thu Feb 20 00:29:03 2014
@@ -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_
 	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)

Reply via email to