Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_udf Avoid assigned but unused compiler warnings wh...



details:   https://anonhg.NetBSD.org/src/rev/468db842c72b
branches:  trunk
changeset: 365739:468db842c72b
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Apr 22 19:21:08 2022 +0000

description:
Avoid assigned but unused compiler warnings when compiling with clang

diffstat:

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

diffs (34 lines):

diff -r 79d151b69ab1 -r 468db842c72b sbin/fsck_udf/main.c
--- a/sbin/fsck_udf/main.c      Fri Apr 22 15:47:03 2022 +0000
+++ b/sbin/fsck_udf/main.c      Fri Apr 22 19:21:08 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.6 2022/04/09 09:59:16 riastradh Exp $       */
+/*     $NetBSD: main.c,v 1.7 2022/04/22 19:21:08 reinoud Exp $ */
 
 /*
  * Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.6 2022/04/09 09:59:16 riastradh Exp $");
+__RCSID("$NetBSD: main.c,v 1.7 2022/04/22 19:21:08 reinoud Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -3545,6 +3545,7 @@
                        udf_node_path(node));
                return EINVAL;
        }
+       (void) fpos;
        return 0;
 }
 
@@ -3646,6 +3647,7 @@
                        &fid_context);
        if (error)
                pwarn("Failed to write out directory!\n");
+       (void) fpos;
 }
 
 



Home | Main Index | Thread Index | Old Index