From e61d459cef11a599008e179b16d5b09cdd88bc95 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 3 Nov 2022 11:05:58 +0100 Subject: Support building with -Werror=strict-prototypes / -Werror=old-style-definition Unfortunately "-std=c99" is not sufficient to make gcc ignore code that uses constructs of earlier C standards, which were abandoned in C99. See https://lwn.net/ml/fedora-devel/Y1kvF35WozzGBpc8@redhat.com/ for some related discussion. Change-Id: I84fd99442d0cc400fa562fa33623c142649230e2 --- utils/osmo-aka-verify.c | 2 +- utils/osmo-auc-gen.c | 2 +- utils/osmo-ns-dummy.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') diff --git a/utils/osmo-aka-verify.c b/utils/osmo-aka-verify.c index bbc65ef7..f23c349b 100644 --- a/utils/osmo-aka-verify.c +++ b/utils/osmo-aka-verify.c @@ -88,7 +88,7 @@ static int milenage_check(const uint8_t *opc, const uint8_t *k, const uint8_t *s } -static void help() +static void help(void) { printf( "Static SIM card parameters:\n" "-k --key\tSpecify Ki / K\n" diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c index 72f1fcd4..e3e1b431 100644 --- a/utils/osmo-auc-gen.c +++ b/utils/osmo-auc-gen.c @@ -85,7 +85,7 @@ static struct osmo_sub_auth_data test_aud = { .algo = OSMO_AUTH_ALG_NONE, }; -static void help() +static void help(void) { int alg; printf( "-2 --2g\tUse 2G (GSM) authentication\n" diff --git a/utils/osmo-ns-dummy.c b/utils/osmo-ns-dummy.c index 0af1a897..eabe0085 100644 --- a/utils/osmo-ns-dummy.c +++ b/utils/osmo-ns-dummy.c @@ -43,7 +43,7 @@ static struct vty_app_info vty_info = { .copyright = vty_copyright, }; -static void print_help() +static void print_help(void) { printf( "Some useful options:\n" " -h --help This text\n" -- cgit v1.2.3