diff options
Diffstat (limited to 'misc/lsattr.c')
-rw-r--r-- | misc/lsattr.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/lsattr.c b/misc/lsattr.c index 513b41a4..ff3859ff 100644 --- a/misc/lsattr.c +++ b/misc/lsattr.c @@ -45,6 +45,12 @@ extern char *optarg; #include "../version.h" #include "nls-enable.h" +#ifdef __GNUC__ +#define EXT2FS_ATTR(x) __attribute__(x) +#else +#define EXT2FS_ATTR(x) +#endif + static const char * program_name = "lsattr"; static int all; @@ -114,7 +120,8 @@ static void lsattr_args (const char * name) } } -static int lsattr_dir_proc (const char * dir_name, struct dirent * de, void * private) +static int lsattr_dir_proc (const char * dir_name, struct dirent * de, + void * private EXT2FS_ATTR((unused))) { STRUCT_STAT st; char *path; |