Added
Link Here
|
1 |
--- lib/xattr.c.orig 2019-08-20 20:40:07 UTC |
2 |
+++ lib/xattr.c |
3 |
@@ -207,7 +207,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 |
@@ -283,7 +283,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 |
@@ -310,6 +310,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi |
31 |
#endif |
32 |
} |
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 |
@@ -478,3 +480,5 @@ int rm_xattr_mark_deduplicated(const char *path, bool |
40 |
g_hash_table_destroy(map); |
41 |
return result; |
42 |
} |
43 |
+ |
44 |
+#endif |