mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
build: stop clang complaining about redefined typedefs
Clang's gnu99 mode is not quite the same as GCC's. It will complain about redefined typedefs being a C11 feature, while GCC does not complain and allows them in gnu99 mode. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
897d8b34c8
commit
412cc0f403
@ -125,6 +125,10 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
|
||||
# We do "bad" function casts all the time for event callbacks
|
||||
wantwarn="$wantwarn -Wno-cast-function-type"
|
||||
|
||||
# CLang incorrectly complains about dup typedefs win gnu99 mode
|
||||
# so use this CLang-specific arg to keep it quiet
|
||||
wantwarn="$wantwarn -Wno-typedef-redefinition"
|
||||
|
||||
# GNULIB expects this to be part of -Wc++-compat, but we turn
|
||||
# that one off, so we need to manually enable this again
|
||||
wantwarn="$wantwarn -Wjump-misses-init"
|
||||
|
Loading…
x
Reference in New Issue
Block a user