summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4fb18ad)
We want to enable all warnings and treat them as errors when running
autoreconf but we have to disable 'obsolete' because of
AM_PATH_GLIB_2_0. Turns out that autoconf >= 2.70 will drop all other
warnings categories when 'all' is used. So the only way to enable all
categories but 'obsolete' is to list them all.
Change-Id: I6fae9c86130d79a1bc9d3bb7d0610a24d734532a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
fi
# Run autoreconf with all warning types as errors except
fi
# Run autoreconf with all warning types as errors except
-# for 'obsolete' because of AM_PATH_GLIB_2_0
-autoreconf -vif -W all,error,no-obsolete
+# for 'obsolete' because of AM_PATH_GLIB_2_0, we have to
+# list all categories because when 'all' is used, autoreconf
+# will drop all the other specified categories except 'error'
+# even if they start with 'no-'.
+autoreconf -vif -W cross,gnu,no-obsolete,override,portability,portability-recursive,extra-portability,syntax,unsupported,error