minor build fix

(Logical change 1.494)
edge.strict_endians
flatcap.org!ntfs 2004-08-12 13:33:25 +00:00
parent bd8a6667cf
commit a61808707f
4 changed files with 7 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;