diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2019-02-21 16:58:03 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-02-21 22:58:46 -0600 |
commit | 5636d390b7f0ca9b9eec7afc471797aeb0b27e66 (patch) | |
tree | 2d8842d19c8ed8a312327346e34fd07888b3cec6 /external | |
parent | a7e1efe864ad3c1b0582b06e50e7283cee66e2aa (diff) | |
download | skiboot-5636d390b7f0ca9b9eec7afc471797aeb0b27e66.zip skiboot-5636d390b7f0ca9b9eec7afc471797aeb0b27e66.tar.gz skiboot-5636d390b7f0ca9b9eec7afc471797aeb0b27e66.tar.bz2 |
gard: Fix warnings from gcc 8.2.0
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 <andrew@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/gard/gard.c | 5 |
1 files changed, 3 insertions, 2 deletions
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"; |