Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: re-enable -Wunused-but-set-variable #348

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif

ACLOCAL_AMFLAGS = -I m4

AM_CFLAGS = $(CWFLAGS) $(CSFLAGS)
AM_CFLAGS = $(CWFLAGS)
AM_CPPFLAGS = $(LIBFIDO2_CFLAGS) $(LIBCRYPTO_CFLAGS)
if ENABLE_FUZZING
AM_CPPFLAGS += -fsanitize=fuzzer-no-link
Expand Down
4 changes: 0 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ AX_CHECK_COMPILE_FLAG([-Wnull-dereference], [CWFLAGS="$CWFLAGS -Wnull-dereferenc
AX_CHECK_COMPILE_FLAG([-Wshadow], [CWFLAGS="$CWFLAGS -Wshadow"], [], [$check_extra_flags])
AX_CHECK_COMPILE_FLAG([-Wpointer-arith], [CWFLAGS="$CWFLAGS -Wpointer-arith"], [], [$check_extra_flags])

AC_ARG_VAR([CSFLAGS], [Warning suppression flags])
AX_CHECK_COMPILE_FLAG([-Wno-unused-but-set-variable], [CSFLAGS="-Wno-unused-but-set-variable"], [], [$check_extra_flags])

AC_CONFIG_FILES([
Makefile
pamu2fcfg/Makefile
Expand Down Expand Up @@ -177,7 +174,6 @@ AC_MSG_NOTICE([Summary of build options:
Compiler: ${CC}
CFLAGS: ${CFLAGS}
CWFLAGS: ${CWFLAGS}
CSFLAGS: ${CSFLAGS}
Library types: Shared=${enable_shared}, Static=${enable_static}
LIBFIDO2 CFLAGS: $LIBFIDO2_CFLAGS
LIBFIDO2 LIBS: $LIBFIDO2_LIBS
Expand Down
2 changes: 1 addition & 1 deletion fuzz/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 2020 Yubico AB - See COPYING
AM_CFLAGS = $(CWFLAGS) $(CSFLAGS) -fsanitize=fuzzer
AM_CFLAGS = $(CWFLAGS) -fsanitize=fuzzer
AM_CPPFLAGS = $(LIBFIDO2_CFLAGS) $(LIBCRYPTO_CFLAGS) -I$(srcdir)/..
AM_CPPFLAGS += -D SCONFDIR='"@SCONFDIR@"'
AM_LDFLAGS = -no-install -fsanitize=fuzzer
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

AM_TESTS_ENVIRONMENT = PAM_U2F_MODULE='$(top_builddir)/.libs/pam_u2f.so'

AM_CFLAGS = $(CWFLAGS) $(CSFLAGS)
AM_CFLAGS = $(CWFLAGS)
AM_CPPFLAGS = -I$(srcdir)/..

AM_LDFLAGS = -no-install
Expand Down
Loading