diff options
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 8de2ffd0..601ecf8c 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]) |