Commit cedcaa1b authored by Jon Griffiths's avatar Jon Griffiths

sha256: Mark parameters as potentially unused

Prevents warnings from gcc at higher warning levels.
Signed-off-by: default avatarJon Griffiths <jon_p_griffiths@yahoo.com>
parent be24e496
...@@ -40,6 +40,7 @@ int main(int argc, char *argv[]) ...@@ -40,6 +40,7 @@ int main(int argc, char *argv[])
return 1; return 1;
if (strcmp(argv[1], "depends") == 0) { if (strcmp(argv[1], "depends") == 0) {
printf("ccan/compiler\n");
printf("ccan/endian\n"); printf("ccan/endian\n");
return 0; return 0;
} }
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*/ */
#include <ccan/crypto/sha256/sha256.h> #include <ccan/crypto/sha256/sha256.h>
#include <ccan/endian/endian.h> #include <ccan/endian/endian.h>
#include <ccan/compiler/compiler.h>
#include <stdbool.h> #include <stdbool.h>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
...@@ -21,7 +22,7 @@ static void invalidate_sha256(struct sha256_ctx *ctx) ...@@ -21,7 +22,7 @@ static void invalidate_sha256(struct sha256_ctx *ctx)
#endif #endif
} }
static void check_sha256(struct sha256_ctx *ctx) static void check_sha256(struct sha256_ctx *ctx UNUSED)
{ {
#ifdef CCAN_CRYPTO_SHA256_USE_OPENSSL #ifdef CCAN_CRYPTO_SHA256_USE_OPENSSL
assert(ctx->c.md_len != 0); assert(ctx->c.md_len != 0);
...@@ -166,7 +167,7 @@ static void Transform(uint32_t *s, const uint32_t *chunk) ...@@ -166,7 +167,7 @@ static void Transform(uint32_t *s, const uint32_t *chunk)
s[7] += h; s[7] += h;
} }
static bool alignment_ok(const void *p, size_t n) static bool alignment_ok(const void *p UNUSED, size_t n UNUSED)
{ {
#if HAVE_UNALIGNED_ACCESS #if HAVE_UNALIGNED_ACCESS
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment