Skip to content

Commit

Permalink
Enable compiler warnings in maintainer mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Perkin committed May 26, 2020
1 parent 144a22d commit 4ed694c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -3957,6 +3957,16 @@ fi



#
# Enable some useful compiler warnings if running in maintainer mode. Note
# that maintainer mode is explicitly disabled in the pkgsrc build to avoid
# user failures (the bug reports are nice, the user experience is not).
#
if test "x$USE_MAINTAINER_MODE" = "xyes"; then :
CFLAGS="$CFLAGS -Werror -Wall -Wextra -Wunused -Wno-unused-parameter"

fi

#
# --with-dbdir=/path/to/pkgin/db
#
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ AM_SILENT_RULES([yes])
AC_PROG_CC
AC_PROG_INSTALL

#
# Enable some useful compiler warnings if running in maintainer mode. Note
# that maintainer mode is explicitly disabled in the pkgsrc build to avoid
# user failures (the bug reports are nice, the user experience is not).
#
AS_IF([test "x$USE_MAINTAINER_MODE" = "xyes"],
CFLAGS="$CFLAGS -Werror -Wall -Wextra -Wunused -Wno-unused-parameter"
)

#
# --with-dbdir=/path/to/pkgin/db
#
Expand Down

0 comments on commit 4ed694c

Please sign in to comment.