[PATCH 4/8] build: ignore some clang-specific warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These cause build errors with clang 3.8.

Disable:
  -Wunevaluated-expression,
   * problems with VIR_TYPEMATCH
  -Wparentheses-equality,
   * we don't want to delete parentheses from macros
  -Waddress-of-packed-member
   * virNWFilterSnoopDHCP violates
  -Wtautological-pointer-compare
   * macros in cputest violate
---
 m4/virt-compile-warnings.m4 | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
index b622e22..661d60b 100644
--- a/m4/virt-compile-warnings.m4
+++ b/m4/virt-compile-warnings.m4
@@ -215,6 +215,15 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
       wantwarn="$wantwarn -Werror"
     fi
 
+    # clang 3.8 chokes on VIR_TYPEMATCH
+    wantwarn="$wantwarn -Wno-unevaluated-expression"
+    # we want extra parentheses around equality comparisons in macros
+    wantwarn="$wantwarn -Wno-parentheses-equality"
+    # virNWFilterSnoopDHCP
+    wantwarn="$wantwarn -Wno-address-of-packed-member"
+    # macros in cputest
+    wantwarn="$wantwarn -Wno-tautological-pointer-compare"
+
     # Check for $CC support of each warning
     for w in $wantwarn; do
       gl_WARN_ADD([$w])
-- 
2.7.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]