Skip to content

Commit

Permalink
build: enable -Wall and -Werror
Browse files Browse the repository at this point in the history
Fixes #86
  • Loading branch information
gotthardp committed Dec 15, 2024
1 parent a0259bc commit d25d639
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tpm2-provider-cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
{ \
Expand Down
2 changes: 1 addition & 1 deletion test/ec_genpkey_store_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int sign_message(EVP_PKEY *pkey)

int load_and_sign(const char *filename, const char *password)
{
OSSL_STORE_CTX *ctx;
OSSL_STORE_CTX *ctx = NULL;
UI_METHOD *ui_method = NULL;
int ret = 1;

Expand Down

0 comments on commit d25d639

Please sign in to comment.