From: Bernd Edlinger Date: Wed, 20 Jun 2018 19:41:05 +0000 (+0200) Subject: Add -Wstrict-prototypes option to --strict-warnings X-Git-Tag: OpenSSL_1_1_1-pre9~265 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=91860165820daf7a17836597f18752f094b887c8 Add -Wstrict-prototypes option to --strict-warnings [extended tests] Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/6542) --- diff --git a/Configure b/Configure index bcf2c04109..9a600913c7 100755 --- a/Configure +++ b/Configure @@ -125,6 +125,7 @@ my $gcc_devteam_warn = "-DDEBUG_UNUSED" . " -Wswitch" . " -Wsign-compare" . " -Wmissing-prototypes" + . " -Wstrict-prototypes" . " -Wshadow" . " -Wformat" . " -Wtype-limits" diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c index 3c9f97976f..be6681dca7 100644 --- a/crypto/ct/ct_log.c +++ b/crypto/ct/ct_log.c @@ -46,7 +46,7 @@ typedef struct ctlog_store_load_ctx_st { * Creates an empty context for loading a CT log store. * It should be populated before use. */ -static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new(); +static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new(void); /* * Deletes a CT log store load context. diff --git a/crypto/ec/curve25519.c b/crypto/ec/curve25519.c index 0f18ff7c7d..9666de1201 100644 --- a/crypto/ec/curve25519.c +++ b/crypto/ec/curve25519.c @@ -150,7 +150,7 @@ void x25519_fe51_mul121666(fe51 h, fe51 f); typedef uint64_t fe64[4]; -int x25519_fe64_eligible(); +int x25519_fe64_eligible(void); /* * There are no reference C implementations for this radix. diff --git a/test/testutil/driver.c b/test/testutil/driver.c index 9cdce7a4e0..8d483336ff 100644 --- a/test/testutil/driver.c +++ b/test/testutil/driver.c @@ -26,7 +26,7 @@ */ typedef struct test_info { const char *test_case_name; - int (*test_fn) (); + int (*test_fn) (void); int (*param_test_fn)(int idx); int num;