]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
maint: make it easier to copy FORTIFY_SOURCE snippet
authorEric Blake <eblake@redhat.com>
Thu, 7 Jun 2012 16:48:05 +0000 (10:48 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 7 Jun 2012 16:52:37 +0000 (10:52 -0600)
commit1c2edf0fbd4d20b3955cd5a3d8986413e94fba51
treec18f4c9c7a2c7098bd7f080c23699b9d7c7d3be5
parent5e8ab3915b5f979f049547565805174ec7cd79b8
maint: make it easier to copy FORTIFY_SOURCE snippet

While libvirt intentionally avoids -Wundef (after all, C99
guarantees sane semantics of treating undefined macros as 0),
the glibc insanity of #warning on _FORTIFY_SOURCE coupled with
what some people feel is the black magic of autoconf means
that other projects are likely to copy our snippet verbatim.
We can be nicer to other projects by making it easier to
integrate into projects that use -Wundef.

Suggested by Christophe Fergeau.

* m4/virt-compile-warnings.m4 (LIBVIRT_COMPILE_WARNINGS): Be nice
to other projects using -Wundef.
m4/virt-compile-warnings.m4