mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-24 15:16:40 -06:00
build: Unify compiler warning flags used
Related: https://pagure.io/freeipa/issue/8351 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
54b42f72fb
commit
a355646c37
@ -4,14 +4,6 @@ AUTOMAKE_OPTIONS = 1.7 subdir-objects
|
||||
|
||||
NULL =
|
||||
|
||||
AM_CFLAGS = $(NULL)
|
||||
if HAVE_GCC
|
||||
AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
|
||||
-Wcast-align -Werror-implicit-function-declaration \
|
||||
$(NULL)
|
||||
endif
|
||||
export AM_CFLAGS
|
||||
|
||||
IPA_CONF_FILE=$(sysconfdir)/ipa/default.conf
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
|
@ -469,6 +469,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
|
||||
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
|
||||
-Wnested-externs -Wpointer-arith \
|
||||
-Wcast-align -Wsign-compare \
|
||||
-Wshadow -Wstrict-prototypes \
|
||||
$CFLAGS"
|
||||
|
||||
for option in -Wno-strict-aliasing -Wno-sign-compare; do
|
||||
|
@ -4,14 +4,6 @@ AUTOMAKE_OPTIONS = 1.7 subdir-objects
|
||||
|
||||
NULL =
|
||||
|
||||
AM_CFLAGS = $(NULL)
|
||||
if HAVE_GCC
|
||||
AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
|
||||
-Wcast-align -Werror-implicit-function-declaration \
|
||||
$(NULL)
|
||||
endif
|
||||
export AM_CFLAGS
|
||||
|
||||
nodist_noinst_HEADERS = ipa-version.h
|
||||
noinst_HEADERS = ipa-version.h.in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user