Skip to content

Commit c3a8758

Browse files
committed
build: enable -Wall and -Werror
Fixes #86
1 parent 9ab3a81 commit c3a8758

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
@CODE_COVERAGE_RULES@
3939
endif
4040

41-
COMMON_CFLAGS = $(CRYPTO_CFLAGS)
41+
COMMON_CFLAGS = -Werror -Wall $(CRYPTO_CFLAGS)
4242
COMMON_LDFLAGS =
4343
if WITH_ASAN
4444
COMMON_CFLAGS += -O1 -g -fsanitize=address -fno-omit-frame-pointer

src/tpm2-provider-cipher.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tpm2_cipher_all_newctx(void *provctx,
5656
}
5757

5858
#define IMPLEMENT_CIPHER_NEWCTX(alg,kbits,amode,blkbits) \
59-
static OSSL_FUNC_cipher_newctx_fn tpm2_cipher_##alg##kbits##lcmode##_newctx; \
59+
static OSSL_FUNC_cipher_newctx_fn tpm2_cipher_##alg##kbits##amode##_newctx; \
6060
static void * \
6161
tpm2_cipher_##alg##kbits##amode##_newctx(void *provctx) \
6262
{ \

test/ec_genpkey_store_load.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ int sign_message(EVP_PKEY *pkey)
9696

9797
int load_and_sign(const char *filename, const char *password)
9898
{
99-
OSSL_STORE_CTX *ctx;
99+
OSSL_STORE_CTX *ctx = NULL;
100100
UI_METHOD *ui_method = NULL;
101101
int ret = 1;
102102

0 commit comments

Comments
 (0)