From bb2827e1e48f700021dcc66c48269dc765927208 Mon Sep 17 00:00:00 2001 From: Petr Gotthard Date: Sun, 15 Dec 2024 22:17:23 +0100 Subject: [PATCH] build: enable -Wall and -Werror Fixes #86 --- Makefile.am | 2 +- src/tpm2-provider-cipher.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 099dd1e..59ec189 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,7 +38,7 @@ else @CODE_COVERAGE_RULES@ endif -COMMON_CFLAGS = $(CRYPTO_CFLAGS) +COMMON_CFLAGS = -Werror -Wall $(CRYPTO_CFLAGS) COMMON_LDFLAGS = if WITH_ASAN COMMON_CFLAGS += -O1 -g -fsanitize=address -fno-omit-frame-pointer diff --git a/src/tpm2-provider-cipher.c b/src/tpm2-provider-cipher.c index 84db9bf..8dfeee1 100644 --- a/src/tpm2-provider-cipher.c +++ b/src/tpm2-provider-cipher.c @@ -58,7 +58,7 @@ tpm2_cipher_all_newctx(void *provctx, } #define IMPLEMENT_CIPHER_NEWCTX(alg,kbits,amode,blkbits) \ - static OSSL_FUNC_cipher_newctx_fn tpm2_cipher_##alg##kbits##lcmode##_newctx; \ + static OSSL_FUNC_cipher_newctx_fn tpm2_cipher_##alg##kbits##amode##_newctx; \ static void * \ tpm2_cipher_##alg##kbits##amode##_newctx(void *provctx) \ { \