diff options
author | Daiki Ueno <ueno@gnu.org> | 2022-12-18 08:05:05 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2022-12-18 08:05:05 +0900 |
commit | 379a103f545f3af606a888e43c7eb27bcdbcf5de (patch) | |
tree | 6fa9fa759faf5ef1eed7f2c3240548019e01420d /tests/dtls-rehandshake-anon.c | |
parent | 1caaf563450e11d09f0dcb501ddc3f025e23cdf0 (diff) | |
download | gnutls-379a103f545f3af606a888e43c7eb27bcdbcf5de.tar.gz |
build: avoid using implicit int to adhere to C99
Otherwise -Wstrict-prototypes now emits the following warnings:
mini-dtls-large.c:30:5: error: function declaration isn't a prototype [-Werror=strict-prototypes]
30 | int main()
| ^~~~
mini-dtls-large.c: In function 'main':
mini-dtls-large.c:30:5: error: old-style function definition [-Werror=old-style-definition]
cc1: all warnings being treated as errors
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'tests/dtls-rehandshake-anon.c')
-rw-r--r-- | tests/dtls-rehandshake-anon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dtls-rehandshake-anon.c b/tests/dtls-rehandshake-anon.c index f281f5d3fa..2d3566f2dc 100644 --- a/tests/dtls-rehandshake-anon.c +++ b/tests/dtls-rehandshake-anon.c @@ -29,7 +29,7 @@ #if defined(_WIN32) -int main() +int main(void) { exit(77); } |