mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 11:33:03 +00:00
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
This commit is contained in:
parent
c6bf062810
commit
5e15aa74c6
@ -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])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user