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/libopts Fix for gcc-4.1



details:   https://anonhg.NetBSD.org/src/rev/d2d1738cd33c
branches:  trunk
changeset: 335071:d2d1738cd33c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 23 19:05:58 2014 +0000

description:
Fix for gcc-4.1

diffstat:

 external/bsd/ntp/lib/libopts/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r ca809e89be3b -r d2d1738cd33c external/bsd/ntp/lib/libopts/Makefile
--- a/external/bsd/ntp/lib/libopts/Makefile     Tue Dec 23 19:04:37 2014 +0000
+++ b/external/bsd/ntp/lib/libopts/Makefile     Tue Dec 23 19:05:58 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2014/06/14 20:49:36 mrg Exp $
+#      $NetBSD: Makefile,v 1.11 2014/12/23 19:05:58 christos Exp $
 
 LIBISPRIVATE=yes
 
@@ -17,6 +17,10 @@
 SRCS=libopts.c
 
 COPTS.libopts.c += -DPOSIX_SHELL="\"/bin/sh\"" -Wno-format-nonliteral
+.if ${HAVE_GCC} >= 45
 COPTS.libopts.c+=      ${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
+.else
+COPTS.libopts.c+=      -Wno-error
+.endif
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index