diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-04-25 15:16:51 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-04-26 18:46:52 +0100 |
commit | 5e15aa74c65892335e6533d6ee86cc07588e5a17 (patch) | |
tree | 8d3ca2396b5cfdec10a397eee2e9bf0e1e2b83f9 /m4 | |
parent | c6bf0628100d5a74ca7b376d810845d7f45c1189 (diff) |
Disable -Waggregate-return if building with SLIRP
The API design of SLIRP means that it is not practical to use
the -Waggregate-return warning flag. Disable this flag in the
(unlikely) scenario where SLIRP is actually requested at build
time
Diffstat (limited to 'm4')
-rw-r--r-- | m4/spice-compile-warnings.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/spice-compile-warnings.m4 b/m4/spice-compile-warnings.m4 index 8de2ffd..601ecf8 100644 --- a/m4/spice-compile-warnings.m4 +++ b/m4/spice-compile-warnings.m4 @@ -148,7 +148,10 @@ AC_DEFUN([SPICE_COMPILE_WARNINGS],[ AC_SUBST([WARN_CXXFLAGS]) # These are C-only warnings - gl_WARN_ADD([-Waggregate-return]) + if test "x$enable_tunnel" != "xyes"; then + # Slirp causes pain :-( + gl_WARN_ADD([-Waggregate-return]) + fi gl_WARN_ADD([-Wstrict-prototypes]) gl_WARN_ADD([-Wold-style-definition]) gl_WARN_ADD([-Wnested-externs]) |