Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp/bin/ntpd Disable warning about broken strnc...



details:   https://anonhg.NetBSD.org/src/rev/3de1c309aacc
branches:  trunk
changeset: 780853:3de1c309aacc
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Aug 09 14:40:52 2012 +0000

description:
Disable warning about broken strncat usage from clang for now.
The code is technically not going to overflow, but completely messed up.

diffstat:

 external/bsd/ntp/bin/ntpd/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 66eb6b6e33ae -r 3de1c309aacc external/bsd/ntp/bin/ntpd/Makefile
--- a/external/bsd/ntp/bin/ntpd/Makefile        Thu Aug 09 14:39:01 2012 +0000
+++ b/external/bsd/ntp/bin/ntpd/Makefile        Thu Aug 09 14:40:52 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2012/02/01 07:46:21 kardel Exp $
+#      $NetBSD: Makefile,v 1.12 2012/08/09 14:40:52 joerg Exp $
 
 #NOGCCERROR=yes
 
@@ -77,6 +77,8 @@
 LDADD+=                -L${LIBPARSE} -lparse -L${LIBISC} -liscntp -lm -lutil
 DPADD+=                ${LIBPARSE}/libparse.a ${LIBISC}/libiscntp.a ${LIBOPTS}/libopts.a  ${LIBNTP}/libntp.a ${LIBM} ${LIBUTIL}
 
+CWARNFLAGS.clang+=     -Wno-strncat-size
+
 .include "${.CURDIR}/../Makefile.inc"
 
 DIST=${IDIST}/ntpd



Home | Main Index | Thread Index | Old Index