Source-Changes-HG archive

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

[src/trunk]: src/share/mk Add comment describing why we remove -Wsystem-heade...



details:   https://anonhg.NetBSD.org/src/rev/ccc08e236e86
branches:  trunk
changeset: 323599:ccc08e236e86
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Jun 22 11:25:03 2018 +0000

description:
Add comment describing why we remove -Wsystem-headers, requested by mrg.

diffstat:

 share/mk/sys.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r ef7a6fe0a0bb -r ccc08e236e86 share/mk/sys.mk
--- a/share/mk/sys.mk   Fri Jun 22 11:04:55 2018 +0000
+++ b/share/mk/sys.mk   Fri Jun 22 11:25:03 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sys.mk,v 1.132 2018/06/20 02:15:13 maya Exp $
+#      $NetBSD: sys.mk,v 1.133 2018/06/22 11:25:03 maya Exp $
 #      @(#)sys.mk      8.2 (Berkeley) 3/21/94
 #
 # This file contains the basic rules for make(1) and is read first
@@ -50,6 +50,8 @@
 CTFMFLAGS      ?=      -t -g -L VERSION
 
 CXX?=          c++
+# Strip flags unsupported by C++ compilers
+# Remove -Wsystem-headers because C++ headers aren't clean of warnings
 CXXFLAGS?=     
${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu[0-9][0-9]:N-Wold-style-definition:N-Wno-format-zero-length:N-Wsystem-headers}
 
 __ALLSRC1=     ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}



Home | Main Index | Thread Index | Old Index