ref: b130ba0ea69f7376f6f201e5361e86dfdc06041f
parent: 278e8d43d2bd28063cb0a0d30fec9ef3d9685e3d
author: Kaho Ng <[email protected]>
date: Sun Jun 19 22:06:04 EDT 2016
ext4: @replace in ext4_setxattr() is deprecated
--- a/include/ext4.h
+++ b/include/ext4.h
@@ -388,7 +388,7 @@
* @param name_len length of @name in bytes
* @param data data of the entry to add
* @param data_size size of data to add
- * @param replace whether existing entries should be replaced
+ * @param replace this boolean is deprecated.
* @return standard error code*/
int ext4_setxattr(const char *path, const char *name, size_t name_len,
const void *data, size_t data_size, bool replace);
--- a/src/ext4.c
+++ b/src/ext4.c
@@ -2414,7 +2414,7 @@
}
int ext4_setxattr(const char *path, const char *name, size_t name_len,
- const void *data, size_t data_size, bool replace)
+ const void *data, size_t data_size, bool replace __unused)
{
bool found;
int r = EOK;