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 ignore format errors for old gcc



details:   https://anonhg.NetBSD.org/src/rev/f9599a6de6ef
branches:  trunk
changeset: 326136:f9599a6de6ef
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 20 01:43:34 2014 +0000

description:
ignore format errors for old gcc

diffstat:

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

diffs (18 lines):

diff -r 311b7f14d685 -r f9599a6de6ef external/bsd/ntp/lib/libopts/Makefile
--- a/external/bsd/ntp/lib/libopts/Makefile     Mon Jan 20 01:37:53 2014 +0000
+++ b/external/bsd/ntp/lib/libopts/Makefile     Mon Jan 20 01:43:34 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2014/01/02 21:38:38 joerg Exp $
+#      $NetBSD: Makefile,v 1.9 2014/01/20 01:43:34 christos Exp $
 
 LIBISPRIVATE=yes
 
@@ -19,6 +19,8 @@
 COPTS.libopts.c += -DPOSIX_SHELL="\"/bin/sh\"" -Wno-format-nonliteral
 .if ${HAVE_GCC:U} >= 45
 COPTS.libopts.c+=      ${${ACTIVE_CC} == "gcc":? -Wno-format-contains-nul :}
+.else
+COPTS.libopts.c+=      -Wno-format
 .endif
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index