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) \ { \