mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
build: Add an --enable-fatal-warnings configure option
New --enable-fatal-warnings ./configure option that just adds -Werror to GCC_CFLAGS Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
88ff135ad4
commit
8216abc587
1 changed files with 10 additions and 1 deletions
11
configure.ac
11
configure.ac
|
|
@ -47,8 +47,17 @@ LT_INIT
|
|||
|
||||
PKG_PROG_PKG_CONFIG()
|
||||
|
||||
AC_ARG_ENABLE([fatal-warnings],
|
||||
AC_HELP_STRING([--enable-fatal-warnings],
|
||||
[Build with -Werror]),
|
||||
[enable_fatal_warnings=$enableval],
|
||||
[enable_fatal_warnings=no])
|
||||
AS_IF([test x"$enable_fatal_warnings" != "xno"], [
|
||||
WERROR_CFLAGS="-Werror"
|
||||
])
|
||||
|
||||
if test "x$GCC" = "xyes"; then
|
||||
GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
|
||||
GCC_CFLAGS="$WERROR_CFLAGS -Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden"
|
||||
fi
|
||||
AC_SUBST(GCC_CFLAGS)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue