diff options
author | David Benjamin <davidben@chromium.org> | 2014-08-21 00:24:00 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-08-21 05:06:07 +0400 |
commit | c44d2f4cb8a892a603edbbe710fa82bcd30f9cb5 (patch) | |
tree | 8e26839eef5cc06c2bd3b0e3461f33b746b48d15 /crypto/cpu-arm.c | |
parent | 5213df4e9ed9ca130c40f142893cb91f2e18eee1 (diff) |
Convert all zero-argument functions to '(void)'
Otherwise, in C, it becomes a K&R function declaration which doesn't actually
type-check the number of arguments.
Change-Id: I0731a9fefca46fb1c266bfb1c33d464cf451a22e
Reviewed-on: https://boringssl-review.googlesource.com/1582
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/cpu-arm.c')
-rw-r--r-- | crypto/cpu-arm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cpu-arm.c b/crypto/cpu-arm.c index 814df266..dac7e1e5 100644 --- a/crypto/cpu-arm.c +++ b/crypto/cpu-arm.c @@ -69,7 +69,7 @@ uint32_t OPENSSL_armcap_P = ARMV7_NEON | ARMV7_NEON_FUNCTIONAL; uint32_t OPENSSL_armcap_P = ARMV7_NEON_FUNCTIONAL; #endif -char CRYPTO_is_NEON_capable() { +char CRYPTO_is_NEON_capable(void) { return (OPENSSL_armcap_P & ARMV7_NEON) != 0; } @@ -81,7 +81,7 @@ void CRYPTO_set_NEON_capable(char neon_capable) { } } -char CRYPTO_is_NEON_functional() { +char CRYPTO_is_NEON_functional(void) { static const uint32_t kWantFlags = ARMV7_NEON | ARMV7_NEON_FUNCTIONAL; return (OPENSSL_armcap_P & kWantFlags) == kWantFlags; } |