mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 13:11:42 +00:00
Enable -Werror in maintainer mode
This commit is contained in:
parent
0c14b150e1
commit
ecc4e1baad
|
@ -71,6 +71,13 @@ AC_ARG_ENABLE([bundle],
|
|||
[enable_bundle=$enableval],
|
||||
[enable_bundle=no])
|
||||
|
||||
if test "x$USE_MAINTAINER_MODE" = "xyes"; then
|
||||
PACKAGE_CFLAGS="$PACKAGE_CFLAGS -Wall -Werror -Wuninitialized -Wmissing-declarations"
|
||||
fi
|
||||
|
||||
AC_SUBST(PACKAGE_CFLAGS)
|
||||
AC_SUBST(PACKAGE_LIBS)
|
||||
|
||||
if test "$enable_bundle" = "yes"; then
|
||||
AC_DEFINE([ENABLE_BUNDLE],[1],[Defined if building bundle])
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue