Prevents warnings from gcc at higher warning levels.
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
return 1;
if (strcmp(argv[1], "depends") == 0) {
return 1;
if (strcmp(argv[1], "depends") == 0) {
+ printf("ccan/compiler\n");
printf("ccan/endian\n");
return 0;
}
printf("ccan/endian\n");
return 0;
}
*/
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/endian/endian.h>
*/
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/endian/endian.h>
+#include <ccan/compiler/compiler.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include <string.h>
-static void check_sha256(struct sha256_ctx *ctx)
+static void check_sha256(struct sha256_ctx *ctx UNUSED)
{
#ifdef CCAN_CRYPTO_SHA256_USE_OPENSSL
assert(ctx->c.md_len != 0);
{
#ifdef CCAN_CRYPTO_SHA256_USE_OPENSSL
assert(ctx->c.md_len != 0);
-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
return true;
{
#if HAVE_UNALIGNED_ACCESS
return true;