Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount_qemufwcfg clang does not like dead unused functions.



details:   https://anonhg.NetBSD.org/src/rev/4c211cbfd9bf
branches:  trunk
changeset: 828150:4c211cbfd9bf
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 30 03:31:08 2017 +0000

description:
clang does not like dead unused functions.

diffstat:

 sbin/mount_qemufwcfg/fwcfg.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 35afef03f7d9 -r 4c211cbfd9bf sbin/mount_qemufwcfg/fwcfg.c
--- a/sbin/mount_qemufwcfg/fwcfg.c      Thu Nov 30 02:45:12 2017 +0000
+++ b/sbin/mount_qemufwcfg/fwcfg.c      Thu Nov 30 03:31:08 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwcfg.c,v 1.3 2017/11/26 15:03:15 christos Exp $ */
+/* $NetBSD: fwcfg.c,v 1.4 2017/11/30 03:31:08 christos Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: fwcfg.c,v 1.3 2017/11/26 15:03:15 christos Exp $");
+__RCSID("$NetBSD: fwcfg.c,v 1.4 2017/11/30 03:31:08 christos Exp $");
 
 #include <sys/ioctl.h>
 
@@ -208,6 +208,7 @@
        }
 }
 
+#if 0
 static __dead void
 usage(void)
 {
@@ -215,6 +216,7 @@
            "[-M <dir-mode>] [-u <uid>] [<fuse-options>]", getprogname());
        exit(EXIT_FAILURE);
 }
+#endif
 
 int
 main(int argc, char *argv[])



Home | Main Index | Thread Index | Old Index