Skip to content

Commit

Permalink
configure: add --disable-strict option
Browse files Browse the repository at this point in the history
By default the compiler arguments are now:
-Wall -Wextra -Wno-unused-parameter -Werror ${CFLAGS}
  • Loading branch information
LudovicRousseau committed Dec 19, 2021
1 parent 5f6519a commit 9124a59
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,17 @@ if test x$use_filter = xyes; then
PCSCLITE_FEATURES="${PCSCLITE_FEATURES} filter"
fi

# --disable-strict
AC_ARG_ENABLE(
[strict],
[AS_HELP_STRING([--disable-strict],[disable strict compile mode @<:@enabled@:>@])],
,
[enable_strict="yes"]
)
if test "${enable_strict}" = "yes"; then
CFLAGS="-Wall -Wextra -Wno-unused-parameter -Werror ${CFLAGS}"
fi

# Setup dist stuff
AC_SUBST(usbdropdir)
AC_SUBST(ipcdir)
Expand Down

0 comments on commit 9124a59

Please sign in to comment.