mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 08:18:08 +02:00
Never use -WError when building
This commit is contained in:
parent
35b0d25b49
commit
b188a49a9c
1 changed files with 0 additions and 18 deletions
18
configure.ac
18
configure.ac
|
|
@ -107,24 +107,6 @@ CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABL
|
|||
CPPFLAGS="$CPPFLAGS -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
|
||||
CPPFLAGS="$CPPFLAGS -DGSEAL_ENABLE"
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl - Use strict options (default enabled for devs, disabled in releases)
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl if .git directory is present, considering we are working in the repository
|
||||
if test -d ".git"; then
|
||||
default_strict=yes
|
||||
else
|
||||
default_strict=no
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(strict, AS_HELP_STRING([--enable-strict],[Enable strict compilation options]), enable_strict=$enableval,
|
||||
enable_strict=$default_strict)
|
||||
if test x$enable_strict != xno; then
|
||||
if test "$GCC" = "yes"; then
|
||||
WARNINGFLAGS_C="$WARNINGFLAGS_C -Werror"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$GCC" = "yes"; then
|
||||
WARNINGFLAGS_C="$WARNINGFLAGS_C -Wall"
|
||||
WARNINGFLAGS_C="$WARNINGFLAGS_C -Wcast-align -Wno-uninitialized"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue