Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/makefs Avoid warning by clang of unused variable
details: https://anonhg.NetBSD.org/src/rev/5bcb7e5faa31
branches: trunk
changeset: 365815:5bcb7e5faa31
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Apr 26 15:18:08 2022 +0000
description:
Avoid warning by clang of unused variable
While here, use the computated obj_size even though it's always the same as
its information length since we don't use extended attribute files or
stream directories.
diffstat:
usr.sbin/makefs/udf.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r ed846df13d4b -r 5bcb7e5faa31 usr.sbin/makefs/udf.c
--- a/usr.sbin/makefs/udf.c Tue Apr 26 15:11:42 2022 +0000
+++ b/usr.sbin/makefs/udf.c Tue Apr 26 15:18:08 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf.c,v 1.28 2022/04/26 14:59:37 reinoud Exp $ */
+/* $NetBSD: udf.c,v 1.29 2022/04/26 15:18:08 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008, 2013, 2021, 2022 Reinoud Zandijk
@@ -30,7 +30,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: udf.c,v 1.28 2022/04/26 14:59:37 reinoud Exp $");
+__RCSID("$NetBSD: udf.c,v 1.29 2022/04/26 15:18:08 reinoud Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -473,6 +473,7 @@
dscr->tag.desc_crc_len = udf_rw16(crclen);
udf_validate_tag_and_crc_sums(dscr);
+ (void) obj_size;
return 0;
}
@@ -617,7 +618,7 @@
} else if (udf_rw16(dscr->tag.id) == TAGID_EXTFENTRY) {
efe->l_ad = udf_rw32(l_ad);
efe->inf_len = udf_rw64(inf_len);
- efe->obj_size = udf_rw64(inf_len);
+ efe->obj_size = udf_rw64(obj_size);
efe->logblks_rec = udf_rw64(logblks_rec);
}
}
Home |
Main Index |
Thread Index |
Old Index