Skip to content

Commit

Permalink
configure.ac: strict is disabled by default
Browse files Browse the repository at this point in the history
Use --enable-strict to use it.
Warnings will not stop the compilation, by default.
  • Loading branch information
LudovicRousseau committed May 13, 2022
1 parent c2ca47d commit b3f7955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ if test x$use_filter = xyes; then
PCSCLITE_FEATURES="${PCSCLITE_FEATURES} filter"
fi

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

# Setup dist stuff
Expand Down

0 comments on commit b3f7955

Please sign in to comment.