diff options
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 4 | ||||
-rw-r--r-- | findutils/grep.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/findutils/find.c b/findutils/find.c index 8c03977..50c7901 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -74,7 +74,9 @@ typedef struct { #endif } action; #define ACTS(name, arg...) typedef struct { action a; arg; } action_##name; -#define ACTF(name) static int func_##name(const char *fileName, struct stat *statbuf, action_##name* ap) +#define ACTF(name) static int func_##name(const char *fileName ATTRIBUTE_UNUSED, \ + struct stat *statbuf ATTRIBUTE_UNUSED, \ + action_##name* ap ATTRIBUTE_UNUSED) ACTS(print) ACTS(name, const char *pattern; bool iname;) USE_FEATURE_FIND_PATH( ACTS(path, const char *pattern;)) diff --git a/findutils/grep.c b/findutils/grep.c index 1094dcc..c4cfcb8 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -371,7 +371,7 @@ static void load_regexes_from_file(llist_t *fopt) } } -static int file_action_grep(const char *filename, struct stat *statbuf, void* matched, int depth) +static int file_action_grep(const char *filename, struct stat *statbuf ATTRIBUTE_UNUSED, void* matched, int depth ATTRIBUTE_UNUSED) { FILE *file = fopen(filename, "r"); if (file == NULL) { |