Source-Changes-HG archive

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

[src/trunk]: src/external/bsd -Wno-array-bounds is no longer needed for clang...



details:   https://anonhg.NetBSD.org/src/rev/99bf50b1d184
branches:  trunk
changeset: 768138:99bf50b1d184
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Aug 09 13:00:58 2011 +0000

description:
-Wno-array-bounds is no longer needed for clang here

diffstat:

 external/bsd/fetch/lib/Makefile |  4 ++--
 external/bsd/ntp/Makefile.inc   |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 81d4171a9e6f -r 99bf50b1d184 external/bsd/fetch/lib/Makefile
--- a/external/bsd/fetch/lib/Makefile   Tue Aug 09 13:00:04 2011 +0000
+++ b/external/bsd/fetch/lib/Makefile   Tue Aug 09 13:00:58 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/06/21 02:32:55 mrg Exp $
+# $NetBSD: Makefile,v 1.7 2011/08/09 13:00:58 joerg Exp $
 
 LIB=           fetch
 SRCS=          fetch.c common.c ftp.c http.c file.c
@@ -40,5 +40,5 @@
 
 .if ${HAVE_GCC} == 45
 # XXX
-COPTS.ftp.c+=  -Wno-array-bounds
+COPTS.ftp.c+=  ${${ACTIVE_CC} == "gcc":?-Wno-array-bounds:}
 .endif
diff -r 81d4171a9e6f -r 99bf50b1d184 external/bsd/ntp/Makefile.inc
--- a/external/bsd/ntp/Makefile.inc     Tue Aug 09 13:00:04 2011 +0000
+++ b/external/bsd/ntp/Makefile.inc     Tue Aug 09 13:00:58 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.6 2011/05/26 12:56:25 joerg Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2011/08/09 13:00:59 joerg Exp $
 
 .if !defined(NTP_MAKEFILE_INC)
 NTP_MAKEFILE_INC=yes
@@ -6,7 +6,7 @@
 USE_FORT?= yes # network client/server
 
 CWARNFLAGS.clang+=     -Wno-unneeded-internal-declaration \
-                       -Wno-format-security -Wno-array-bounds \
+                       -Wno-format-security \
                        -Wno-parentheses -Wno-constant-logical-operand
 
 WARNS?=        5



Home | Main Index | Thread Index | Old Index