Add -Wstrict-prototypes option to --strict-warnings
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 20 Jun 2018 19:41:05 +0000 (21:41 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 21 Jun 2018 17:04:19 +0000 (19:04 +0200)
[extended tests]

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6542)

Configure
crypto/ct/ct_log.c
crypto/ec/curve25519.c
test/testutil/driver.c

index bcf2c041097383eabea31231847061911ba78147..9a600913c76269f9a7903c4dedd87acb22fc0de8 100755 (executable)
--- 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"
index 3c9f97976fb2924f69369f77cb3e74dcf6396362..be6681dca74e6a1b092b3b9332955ae01c66c17d 100644 (file)
@@ -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.
index 0f18ff7c7d7935ec0d227ecd5a5edf7e424a4e67..9666de12013b50059252c0609a656c9bbfa56554 100644 (file)
@@ -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.
index 9cdce7a4e035e6a0944978686dc85938da012b56..8d483336ff44f4f598bd003796983c1c9fed06c4 100644 (file)
@@ -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;