ext4: @replace in ext4_setxattr() is deprecated
authorKaho Ng <ngkaho1234@gmail.com>
Sun, 19 Jun 2016 18:06:04 +0000 (02:06 +0800)
committerKaho Ng <ngkaho1234@gmail.com>
Mon, 20 Jun 2016 10:06:15 +0000 (18:06 +0800)
include/ext4.h
src/ext4.c

index 102802cff705f78f7be5c555ce7e5b4c283b3d4c..fede38f0273651f0833775a834d9eae69d794981 100644 (file)
@@ -388,7 +388,7 @@ int ext4_readlink(const char *path, char *buf, size_t bufsize, size_t *rcnt);
  * @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);
index b529bbde24e047b8b48b7ddfef065d3e719cb317..86c5c1dc5e5dc92f1d0cba99c69fc0ecb91d5f0e 100644 (file)
@@ -2414,7 +2414,7 @@ Finish:
 }
 
 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;