Module Name: src
Committed By: reinoud
Date: Fri Apr 22 19:21:08 UTC 2022
Modified Files:
src/sbin/fsck_udf: main.c
Log Message:
Avoid assigned but unused compiler warnings when compiling with clang
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sbin/fsck_udf/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fsck_udf/main.c
diff -u src/sbin/fsck_udf/main.c:1.6 src/sbin/fsck_udf/main.c:1.7
--- src/sbin/fsck_udf/main.c:1.6 Sat Apr 9 09:59:16 2022
+++ src/sbin/fsck_udf/main.c Fri Apr 22 19:21:08 2022
@@ -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_process_node_pass1(struct udf_fsck_n
udf_node_path(node));
return EINVAL;
}
+ (void) fpos;
return 0;
}
@@ -3646,6 +3647,7 @@ udf_node_pass3_repairdir(struct udf_fsck
&fid_context);
if (error)
pwarn("Failed to write out directory!\n");
+ (void) fpos;
}