aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-11-03 11:26:14 +0100
committerHarald Welte <laforge@osmocom.org>2022-11-03 12:42:57 +0100
commitc9b46a1c34a6c3efe6882891df7282b37fe52a12 (patch)
tree92b8ac9c14183e2fbe852903a7ad2284e8f49eae /tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
parent2404c9ae2af03154e95789ac2ffe7f029d2cdcbf (diff)
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
Diffstat (limited to 'tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c')
-rw-r--r--tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c b/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
index 1997fdc..411b802 100644
--- a/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
+++ b/tests/libosmo-gtlv/test_gtlv_gen/gtlv_gen_test.c
@@ -245,7 +245,7 @@ void test_enc_dec(const char *label, const struct osmo_gtlv_cfg *cfg, bool order
}
}
-int main()
+int main(int argc, char **argv)
{
ctx = talloc_named_const(NULL, 0, "test_gen_tlv");
msgb_talloc_ctx_init(ctx, 0);