File 0003-hfs-Remove-unsupported-__unused-specifiers.patch of Package hfsplus-tools

From 88cfb74654212934d6b3ae7306ac0c74cfc5e905 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Tue, 20 Jun 2023 16:57:55 +0200
Subject: [PATCH 3/7] hfs: Remove unsupported __unused specifiers

---
 fsck_hfs/dfalib/fsck_journal.c | 2 +-
 newfs_hfs/makehfs.c            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fsck_hfs/dfalib/fsck_journal.c b/fsck_hfs/dfalib/fsck_journal.c
index 1a37e28..10d8033 100644
--- a/fsck_hfs/dfalib/fsck_journal.c
+++ b/fsck_hfs/dfalib/fsck_journal.c
@@ -375,7 +375,7 @@ journal_open(int jfd,
 	     off_t	offset,		// Offset of journal
 	     off_t	journal_size,	// Size, in bytes, of the entire journal
 	     size_t	min_fs_blksize,	// Blocksize of the data filesystem, journal blocksize must be at least this size
-	     uint32_t	flags __unused,	// Not used in this implementation
+	     uint32_t	flags,	// Not used in this implementation
 	     const char	*jdev_name,	// The name of the journal device, for logging
 	     journal_write_block_t do_write_b)
 {
diff --git a/newfs_hfs/makehfs.c b/newfs_hfs/makehfs.c
index 43b1d89..a97c89e 100644
--- a/newfs_hfs/makehfs.c
+++ b/newfs_hfs/makehfs.c
@@ -1052,7 +1052,7 @@ exit:
  */
 static void
 WriteExtentsFile(const DriveInfo *driveInfo, UInt64 startingSector,
-        const hfsparams_t *dp, HFSExtentDescriptor *bbextp __unused , void *buffer,
+        const hfsparams_t *dp, HFSExtentDescriptor *bbextp, void *buffer,
         UInt32 *bytesUsed, UInt32 *mapNodes)
 {
 	BTNodeDescriptor	*ndp;
@@ -1197,7 +1197,7 @@ WriteExtentsFile(const DriveInfo *driveInfo, UInt64 startingSector,
  */
 static void
 WriteAttributesFile(const DriveInfo *driveInfo, UInt64 startingSector,
-        const hfsparams_t *dp, HFSExtentDescriptor *bbextp __unused, void *buffer,
+        const hfsparams_t *dp, HFSExtentDescriptor *bbextp, void *buffer,
         UInt32 *bytesUsed, UInt32 *mapNodes)
 {
 	BTNodeDescriptor	*ndp;
-- 
2.41.0

openSUSE Build Service is sponsored by