diff options
author | Harald Welte <laforge@osmocom.org> | 2022-11-03 11:05:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-11-03 12:44:28 +0100 |
commit | e61d459cef11a599008e179b16d5b09cdd88bc95 (patch) | |
tree | 8d046c40e5ef3d37131cd2ec3408cb69b303e13d /tests/bssmap_le | |
parent | 0d9b6b0e31f2d608c9ac18a861a905a94b978702 (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: I84fd99442d0cc400fa562fa33623c142649230e2
Diffstat (limited to 'tests/bssmap_le')
-rw-r--r-- | tests/bssmap_le/bssmap_le_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bssmap_le/bssmap_le_test.c b/tests/bssmap_le/bssmap_le_test.c index 08ed4c6e..a14c38a3 100644 --- a/tests/bssmap_le/bssmap_le_test.c +++ b/tests/bssmap_le/bssmap_le_test.c @@ -150,7 +150,7 @@ struct bssmap_le_pdu bssmap_le_test_pdus[] = { }, }; -void test_bssmap_le_enc_dec() +void test_bssmap_le_enc_dec(void) { struct bssmap_le_pdu *pdu; printf("--- %s\n", __func__); @@ -200,7 +200,7 @@ loop_end: } } -int main() +int main(int argc, char **argv) { test_bssmap_le_enc_dec(); return 0; |