From c9b46a1c34a6c3efe6882891df7282b37fe52a12 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 3 Nov 2022 11:26:14 +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: I79c51b78d1b055361f9ef5434361847353791d0d --- tests/libosmo-gtlv/test_tliv/tliv_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libosmo-gtlv/test_tliv/tliv_test.c') diff --git a/tests/libosmo-gtlv/test_tliv/tliv_test.c b/tests/libosmo-gtlv/test_tliv/tliv_test.c index 49ae25c..242fb1a 100644 --- a/tests/libosmo-gtlv/test_tliv/tliv_test.c +++ b/tests/libosmo-gtlv/test_tliv/tliv_test.c @@ -204,7 +204,7 @@ const struct osmo_gtlv_cfg osmo_tliv_cfg = { .store_tl = tliv_store_tl, }; -int main() +int main(int argc, char **argv) { ctx = talloc_named_const(NULL, 0, "test_gen_tlv"); msgb_talloc_ctx_init(ctx, 0); -- cgit v1.2.3