Suppress the following compiler warning:
main.c:37:14: warning: unused function 'absolute_path' [-Wunused-function]
static char *absolute_path(const char *file)
^
Signed-off-by: Bart Van Assche <[email protected]>
---
fsck/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fsck/main.c b/fsck/main.c
index fc776eb0af1f..8676f17555c5 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -34,6 +34,7 @@ struct f2fs_fsck gfsck;
INIT_FEATURE_TABLE;
+#ifdef WITH_SLOAD
static char *absolute_path(const char *file)
{
char *ret;
@@ -51,6 +52,7 @@ static char *absolute_path(const char *file)
ret = strdup(file);
return ret;
}
+#endif
void fsck_usage()
{
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel