diff --git a/libntfs/attrlist.c b/libntfs/attrlist.c index 98efe64a..4c7125b7 100644 --- a/libntfs/attrlist.c +++ b/libntfs/attrlist.c @@ -38,7 +38,7 @@ * * Return 0 on success and -1 on error with errno set to the error code. */ -int ntfs_attrlist_entry_rm(ntfs_attr_search_ctx *ctx) +int ntfs_attrlist_entry_rm(ntfs_attr_search_ctx *ctx __attribute__((unused))) { errno = ENOTSUP; return -1; diff --git a/ntfsprogs/ntfscat.c b/ntfsprogs/ntfscat.c index bd2d8834..25382a24 100644 --- a/ntfsprogs/ntfscat.c +++ b/ntfsprogs/ntfscat.c @@ -210,7 +210,9 @@ static int parse_options (int argc, char **argv) /** * cat */ -static int cat (ntfs_volume *vol, ntfs_inode *inode, ATTR_TYPES type, ntfschar *name, int namelen) +static int cat (ntfs_volume *vol __attribute__((unused)), ntfs_inode *inode, + ATTR_TYPES type, ntfschar *name __attribute__((unused)), + int namelen __attribute__((unused))) { /* increase 1024 only if you fix partial writes below */ const int bufsize = 1024; diff --git a/ntfsprogs/ntfscluster.c b/ntfsprogs/ntfscluster.c index 777c142a..df5f0e05 100644 --- a/ntfsprogs/ntfscluster.c +++ b/ntfsprogs/ntfscluster.c @@ -398,7 +398,7 @@ static int dump_file (ntfs_volume *vol, ntfs_inode *ino) * print_match */ static int print_match (ntfs_inode *ino, ATTR_RECORD *attr, - runlist_element *run, void *data) + runlist_element *run, void *data __attribute__((unused))) { char *buffer; diff --git a/ntfsprogs/ntfsls.c b/ntfsprogs/ntfsls.c index 7eaf05a3..8d77ea54 100644 --- a/ntfsprogs/ntfsls.c +++ b/ntfsprogs/ntfsls.c @@ -463,8 +463,8 @@ static int readdir_recursive(ntfs_inode * ni, s64 * pos, ntfsls_dirent * dirent) */ static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name, const int name_len, const int name_type, - const s64 pos, const MFT_REF mref, - const unsigned dt_type) + const s64 pos __attribute__((unused)), + const MFT_REF mref, const unsigned dt_type) { char *filename = NULL; int result = 0;