From: Kaho Ng Date: Sun, 19 Jun 2016 18:06:04 +0000 (+0800) Subject: ext4: @replace in ext4_setxattr() is deprecated X-Git-Url: https://git.carlh.net/gitweb/?p=lwext4.git;a=commitdiff_plain;h=b130ba0ea69f7376f6f201e5361e86dfdc06041f ext4: @replace in ext4_setxattr() is deprecated --- diff --git a/include/ext4.h b/include/ext4.h index 102802c..fede38f 100644 --- a/include/ext4.h +++ b/include/ext4.h @@ -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); diff --git a/src/ext4.c b/src/ext4.c index b529bbd..86c5c1d 100644 --- a/src/ext4.c +++ b/src/ext4.c @@ -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;