Source-Changes-HG archive

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

[src/trunk]: src/external/mit/xorg/lib Make a number of clang warnings non-fa...



details:   https://anonhg.NetBSD.org/src/rev/19513fdee773
branches:  trunk
changeset: 335380:19513fdee773
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jan 05 01:34:42 2015 +0000

description:
Make a number of clang warnings non-fatal, too many changes with little
gain.

diffstat:

 external/mit/xorg/lib/dri/Makefile     |  5 ++++-
 external/mit/xorg/lib/gallium/Makefile |  9 ++++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 69e0c39600c9 -r 19513fdee773 external/mit/xorg/lib/dri/Makefile
--- a/external/mit/xorg/lib/dri/Makefile        Mon Jan 05 00:51:50 2015 +0000
+++ b/external/mit/xorg/lib/dri/Makefile        Mon Jan 05 01:34:42 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2014/12/23 17:50:42 christos Exp $
+# $NetBSD: Makefile,v 1.24 2015/01/05 01:34:42 joerg Exp $
 
 # Link the mesa_dri_drivers mega driver.
 
@@ -398,6 +398,9 @@
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
 LIBDIR=                ${X11USRLIBDIR}/modules/dri
 
+CWARNFLAGS.clang+=     -Wno-error=initializer-overrides -Wno-error=switch \
+                       -Wno-error=tautological-constant-out-of-range-compare
+
 .include <bsd.lib.mk>
 .else
 .include <bsd.inc.mk>
diff -r 69e0c39600c9 -r 19513fdee773 external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile    Mon Jan 05 00:51:50 2015 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile    Mon Jan 05 01:34:42 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2015/01/04 01:26:31 christos Exp $
+# $NetBSD: Makefile,v 1.4 2015/01/05 01:34:42 joerg Exp $
 
 # Link the gallium mega driver.
 
@@ -463,6 +463,13 @@
        -I${X11SRCDIR.MesaLib}/src/loader \
        -I${X11SRCDIR.MesaLib}/src/gallium/winsys
 
+CWARNFLAGS.clang+=     -Wno-error=constant-conversion \
+                       -Wno-error=tautological-constant-out-of-range-compare \
+                       -Wno-error=pointer-sign \
+                       -Wno-error=switch \
+                       -Wno-error=absolute-value \
+                       -Wno-error=tautological-compare
+
 .include <bsd.x11.mk>
 LIBDIR=                ${X11USRLIBDIR}/modules/dri
 



Home | Main Index | Thread Index | Old Index