mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-17 01:55:17 +00:00
29263ec243
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. (cherry picked from commit 1c2edf0fbd4d20b3955cd5a3d8986413e94fba51)