Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Avoid C++-isms (stupid muscle memory) to fi...



details:   https://anonhg.NetBSD.org/src/rev/7a380afe35df
branches:  trunk
changeset: 368442:7a380afe35df
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 11 15:12:24 2022 +0000

description:
Avoid C++-isms (stupid muscle memory) to fix the build.

diffstat:

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

diffs (18 lines):

diff -r 6518c46f6d61 -r 7a380afe35df usr.sbin/sysinst/defs.h
--- a/usr.sbin/sysinst/defs.h   Mon Jul 11 09:39:10 2022 +0000
+++ b/usr.sbin/sysinst/defs.h   Mon Jul 11 15:12:24 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: defs.h,v 1.86 2022/07/10 10:52:40 martin Exp $ */
+/*     $NetBSD: defs.h,v 1.87 2022/07/11 15:12:24 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -949,7 +949,7 @@
 void update_wedges(const char *);
 void pm_destroy_all(void);
 #else
-static inline int partman(struct install_partition_desc*) { return -1; }
+static inline int partman(struct install_partition_desc *i __unused) { return -1; }
 static inline int pm_getrefdev(struct pm_devs *x __unused) { return -1; }
 #define update_wedges(x) __nothing
 #endif



Home | Main Index | Thread Index | Old Index