Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst Mark a variable only used in an assert as _...



details:   https://anonhg.NetBSD.org/src/rev/032670064cd2
branches:  trunk
changeset: 941604:032670064cd2
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Oct 25 08:50:32 2020 +0000

description:
Mark a variable only used in an assert as __diagused.

diffstat:

 usr.sbin/sysinst/util.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6adcd3409bc3 -r 032670064cd2 usr.sbin/sysinst/util.c
--- a/usr.sbin/sysinst/util.c   Sun Oct 25 08:29:30 2020 +0000
+++ b/usr.sbin/sysinst/util.c   Sun Oct 25 08:50:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.49 2020/10/24 16:13:15 martin Exp $ */
+/*     $NetBSD: util.c,v 1.50 2020/10/25 08:50:32 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -515,7 +515,7 @@
 get_available_cds(void)
 {
        struct get_available_cds_state data;
-       int n, e;
+       int n, __diagused e;
 
        memset(&data, 0, sizeof data);
        data.info = cds;



Home | Main Index | Thread Index | Old Index