summaryrefslogtreecommitdiff
path: root/libparted/fs/r
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>2019-08-14 10:59:23 +0900
committerBrian C. Lane <bcl@redhat.com>2020-11-05 16:32:08 -0800
commitbed9c6a17ee82c87bf47981149e224f2e34baedb (patch)
treeb5faafc43670f7ecb98890f0c69f74e71225b8e7 /libparted/fs/r
parent5449d1b1ee763e8ae1057fb7d18f7fbccb7a6fe0 (diff)
downloadparted-bed9c6a17ee82c87bf47981149e224f2e34baedb.tar.gz
libparted: Avoid a GCC warning for unused functions
libparted/fs/r/hfs/hfs.c has a '#if 0' block. The block refers two functions hfsplus_clobber() and hfs_clobber(). It have GCC report a warning below. CC r/hfs/hfs.lo r/hfs/hfs.c:343:1: warning: 'hfsplus_clobber' defined but not used [-Wunused-function] 343 | hfsplus_clobber (PedGeometry* geom) | ^~~~~~~~~~~~~~~ To avoid the warning, add two more '#if 0' to disable the two functions. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp> Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'libparted/fs/r')
-rw-r--r--libparted/fs/r/hfs/hfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libparted/fs/r/hfs/hfs.c b/libparted/fs/r/hfs/hfs.c
index 6be0390..0aababd 100644
--- a/libparted/fs/r/hfs/hfs.c
+++ b/libparted/fs/r/hfs/hfs.c
@@ -59,6 +59,7 @@ static PedFileSystemType hfsplus_type;
/* ----- HFS ----- */
+#if 0
/* This is a very unundoable operation */
/* Maybe I shouldn't touch the alternate MDB ? */
/* Anyway clobber is call before other fs creation */
@@ -78,6 +79,7 @@ hfs_clobber (PedGeometry* geom)
(!!ped_geometry_write (geom, buf, geom->length - 1, 1)) &
(!!ped_geometry_sync (geom));
}
+#endif
PedFileSystem *
hfs_open (PedGeometry* geom)
@@ -339,6 +341,7 @@ hfs_resize (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer)
#include "reloc_plus.h"
#include "journal.h"
+#if 0
static int
hfsplus_clobber (PedGeometry* geom)
{
@@ -374,6 +377,7 @@ hfsplus_clobber (PedGeometry* geom)
/* non-embedded or envelop destroy as hfs */
return ( hfs_clobber (geom) && i );
}
+#endif
int
hfsplus_close (PedFileSystem *fs)