Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp/lib/libntp Gcc-4.1 does not have -Wno-error



details:   https://anonhg.NetBSD.org/src/rev/00694ecb0d49
branches:  trunk
changeset: 326134:00694ecb0d49
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 20 01:32:12 2014 +0000

description:
Gcc-4.1 does not have -Wno-error

diffstat:

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

diffs (19 lines):

diff -r 4126b5a528a5 -r 00694ecb0d49 external/bsd/ntp/lib/libntp/Makefile
--- a/external/bsd/ntp/lib/libntp/Makefile      Mon Jan 20 01:15:03 2014 +0000
+++ b/external/bsd/ntp/lib/libntp/Makefile      Mon Jan 20 01:32:12 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2014/01/15 14:40:30 apb Exp $
+#      $NetBSD: Makefile,v 1.9 2014/01/20 01:32:12 christos Exp $
 
 LIBISPRIVATE=yes
 
@@ -77,7 +77,9 @@
 
 CPPFLAGS+= -I${IDIST}/sntp/libopts
 
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
 COPTS.msyslog.c+=      -Wno-error=format-nonliteral
+.endif
 
 # For MKREPRO, avoid using __DATE__ and __TIME__.
 # Instead, use the date and time from ${IMPORTDATE_FILE}.



Home | Main Index | Thread Index | Old Index