Line 0
Link Here
|
|
|
1 |
--- lib/xattr.c.orig 2020-12-06 15:39:50 UTC |
2 |
+++ lib/xattr.c |
3 |
@@ -209,7 +209,7 @@ static int rm_xattr_del(RmFile *file, const char *key, |
4 |
// ACTUAL API FUNCTIONS // |
5 |
//////////////////////////// |
6 |
|
7 |
-int rm_xattr_write_hash(RmFile *file, RmSession *session) { |
8 |
+int rm_xattr_write_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { |
9 |
g_assert(file); |
10 |
g_assert(file->digest); |
11 |
g_assert(session); |
12 |
@@ -236,7 +236,7 @@ int rm_xattr_write_hash(RmFile *file, RmSession *sessi |
13 |
return 0; |
14 |
} |
15 |
|
16 |
-gboolean rm_xattr_read_hash(RmFile *file, RmSession *session) { |
17 |
+gboolean rm_xattr_read_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { |
18 |
g_assert(file); |
19 |
g_assert(session); |
20 |
|
21 |
@@ -287,7 +287,7 @@ gboolean rm_xattr_read_hash(RmFile *file, RmSession *s |
22 |
#endif |
23 |
} |
24 |
|
25 |
-int rm_xattr_clear_hash(RmFile *file, RmSession *session) { |
26 |
+int rm_xattr_clear_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { |
27 |
g_assert(file); |
28 |
g_assert(session); |
29 |
|
30 |
@@ -316,6 +316,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi |
31 |
|
32 |
#if HAVE_XATTR |
33 |
|
34 |
+#if HAVE_XATTR |
35 |
+ |
36 |
GHashTable *rm_xattr_list(const char *path, bool follow_symlinks) { |
37 |
const size_t buf_size = 4096; |
38 |
const size_t val_size = 1024; |
39 |
@@ -484,5 +486,7 @@ int rm_xattr_mark_deduplicated(const char *path, bool |
40 |
g_hash_table_destroy(map); |
41 |
return result; |
42 |
} |
43 |
+ |
44 |
+#endif |
45 |
|
46 |
#endif |