From 5636d390b7f0ca9b9eec7afc471797aeb0b27e66 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Thu, 21 Feb 2019 16:58:03 +1030 Subject: gard: Fix warnings from gcc 8.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gard.c:285:5: error: no previous prototype for ‘parse_path’ [-Werror=missing-prototypes] int parse_path(const char *str, struct entity_path *parsed) ^~~~~~~~~~ gard.c: In function ‘do_list’: gard.c:459:46: error: unused parameter ‘argc’ [-Werror=unused-parameter] static int do_list(struct gard_ctx *ctx, int argc, char **argv) ~~~~^~~~ gard.c:459:59: error: unused parameter ‘argv’ [-Werror=unused-parameter] static int do_list(struct gard_ctx *ctx, int argc, char **argv) ~~~~~~~^~~~ Signed-off-by: Andrew Jeffery Signed-off-by: Stewart Smith --- external/gard/gard.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'external') diff --git a/external/gard/gard.c b/external/gard/gard.c index c686791..16da76a 100644 --- a/external/gard/gard.c +++ b/external/gard/gard.c @@ -282,7 +282,7 @@ static char *format_path(struct entity_path *path, char *buffer) * path_element[2] = {2, 1} * } */ -int parse_path(const char *str, struct entity_path *parsed) +static int parse_path(const char *str, struct entity_path *parsed) { int unit_count = 0; @@ -456,7 +456,8 @@ static void draw_ruler(char c, int size) putchar('\n'); } -static int do_list(struct gard_ctx *ctx, int argc, char **argv) +static int do_list(struct gard_ctx *ctx, int argc __attribute__((unused)), + char **argv __attribute__((unused))) { /* This header matches the line formatting above in do_list_i() */ const char *header = " ID | Error | Type | Path"; -- cgit v1.1