Skip to content

Commit e21f8ab

Browse files
JuergenReppSITAndreasFuchsTPM
authored andcommitted
build: temporarily allow several warning
Since the current build system uses -Werror, these warnings immediately break the build on Arch Linux. This commit temporarily allows: - Deprecated declarations (due to cmocka API changes) - discarded-qualifiers (e.g. strchr assignment with const parameter). This is a temporary workaround. Signed-off-by: Juergen Repp <juergen_repp@web.de>
1 parent 29e23a6 commit e21f8ab

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ LDADD = \
2727

2828
AM_DISTCHECK_CONFIGURE_FLAGS = --with-bashcompdir='$$(datarootdir)/bash-completion/completions'
2929

30+
AM_CFLAGS += -DCMOCKA_ENABLE_DEPRECATED=1
31+
AM_CFLAGS += -Wno-error=deprecated-declarations
32+
AM_CFLAGS += -Wno-error=discarded-qualifiers
33+
3034
# keep me sorted
3135
bin_PROGRAMS =
3236
FAPI_CFLAGS = $(EXTRA_CFLAGS) $(TSS2_FAPI_CFLAGS) $(CODE_COVERAGE_CFLAGS) $(CRYPTO_CFLAGS)

0 commit comments

Comments
 (0)