configure: Enable set of standard -Werror=foo flags
authorColin Walters <walters@verbum.org>
Thu, 1 Nov 2012 23:39:20 +0000 (19:39 -0400)
committerColin Walters <walters@verbum.org>
Fri, 2 Nov 2012 13:03:52 +0000 (09:03 -0400)
commit28b30caecb8d53c0d41e6a46ef9ba01d2f08e051
tree85bdac8f390067b846d999021369276f8297f3a0
parent055aa2b55e192a9c44fb0af07d8c1b3d8ef20b99
configure: Enable set of standard -Werror=foo flags

We're not going to depend on gnome-common (I assume) so this patch
nicks the systemd macro to test for compiler flags, and uses it to set
a similar set of -Werror=foo as the gnome-common one does.

See https://bugzilla.gnome.org/show_bug.cgi?id=608953
See https://mail.gnome.org/archives/desktop-devel-list/2012-July/msg00100.html

If we're going to be setting more strict compiler flags for GNOME, we
should really ensure GLib builds with them first, as it's kind of the
model citizen.

In particular, you can see several times that downstreams such as
Debian have come in and fixed -Wformat-security bugs.  We should never
let those get into tarballs, or even commits.

https://bugzilla.gnome.org/show_bug.cgi?id=687385
configure.ac
m4macros/attributes.m4 [new file with mode: 0644]