Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/i915drmkms Adjust flags to allow building with c...



details:   https://anonhg.NetBSD.org/src/rev/8c9c7acc4b17
branches:  trunk
changeset: 333679:8c9c7acc4b17
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Nov 13 16:37:39 2014 +0000

description:
Adjust flags to allow building with clang.

diffstat:

 sys/modules/i915drmkms/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r c6ae4cdc83b1 -r 8c9c7acc4b17 sys/modules/i915drmkms/Makefile
--- a/sys/modules/i915drmkms/Makefile   Thu Nov 13 16:18:38 2014 +0000
+++ b/sys/modules/i915drmkms/Makefile   Thu Nov 13 16:37:39 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/11/12 02:15:16 christos Exp $
+# $NetBSD: Makefile,v 1.7 2014/11/13 16:37:39 joerg Exp $
 
 .include "../Makefile.inc"
 .include "../drmkms/Makefile.inc"
@@ -70,8 +70,10 @@
 SRCS+= intel_gtt.c
 SRCS+= intelfb.c
 
-COPTS.i915_drv.c+=     -Wno-override-init
-COPTS.intel_display.c+=        -Wno-shadow
+COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "gcc":? -Wno-override-init :}
+COPTS.i915_drv.c+=     ${${ACTIVE_CC} == "clang":? -Wno-initializer-overrides :}
+
+COPTS.intel_display.c+=        -Wno-shadow -Wno-conversion
 COPTS.intel_panel.c+=  -Wno-shadow
 COPTS.intel_pm.c+=     -Wno-shadow
 



Home | Main Index | Thread Index | Old Index