From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> () is an archaic form, use (void) Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> --- include/ibdiag_common.h | 2 +- src/ibdiag_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ibdiag_common.h b/include/ibdiag_common.h index 20449cf8a3d0fd..a20408e582eb2c 100644 --- a/include/ibdiag_common.h +++ b/include/ibdiag_common.h @@ -138,7 +138,7 @@ extern int ibdiag_process_opts(int argc, char *const argv[], void *context, char *optarg), const char *usage_args, const char *usage_examples[]); -extern void ibdiag_show_usage(); +extern void ibdiag_show_usage(void); extern void ibexit(const char *fn, const char *msg, ...); /* convert counter values to a float with a unit specifier returned (using diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index 867b5d0c5693e1..977d8e1d05d394 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -174,7 +174,7 @@ static void read_ibdiag_config(const char *file) } -void ibdiag_show_usage() +void ibdiag_show_usage(void) { struct option *o = long_opts; int n; -- 2.21.0