Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/radeon Appease GCC with a kernel sanit...



details:   https://anonhg.NetBSD.org/src/rev/32d9644d2ae2
branches:  trunk
changeset: 433570:32d9644d2ae2
user:      kamil <kamil%NetBSD.org@localhost>
date:      Fri Sep 21 11:31:50 2018 +0000

description:
Appease GCC with a kernel sanitizer

Add -Wno-maybe-uninitialized for radeon, a compiler warning is triggered
by a false positive.

diffstat:

 sys/external/bsd/drm2/radeon/files.radeon |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r bb1c3eb30221 -r 32d9644d2ae2 sys/external/bsd/drm2/radeon/files.radeon
--- a/sys/external/bsd/drm2/radeon/files.radeon Fri Sep 21 11:27:13 2018 +0000
+++ b/sys/external/bsd/drm2/radeon/files.radeon Fri Sep 21 11:31:50 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.radeon,v 1.21 2018/08/27 16:06:01 riastradh Exp $
+#      $NetBSD: files.radeon,v 1.22 2018/09/21 11:31:50 kamil Exp $
 
 version        20180827
 
@@ -23,6 +23,8 @@
 makeoptions    radeon  "CWARNFLAGS.radeon"+="-Wno-shadow"
 makeoptions    radeon  "CWARNFLAGS.radeon"+="-Wno-unused-const-variable"
 
+makeoptions    radeon  "CWARNFLAGS.radeon"+="${${ACTIVE_CC} == gcc:? -Wno-maybe-uninitialized :}"
+
 file   external/bsd/drm2/radeon/radeon_module.c                radeon
 file   external/bsd/drm2/radeon/radeon_pci.c                   radeon
 



Home | Main Index | Thread Index | Old Index