Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/libarchive Tell GCC to shut up about strftime f...



details:   https://anonhg.NetBSD.org/src/rev/1b3ac85dd64f
branches:  trunk
changeset: 353122:1b3ac85dd64f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Apr 20 20:34:24 2017 +0000

description:
Tell GCC to shut up about strftime format strings.

diffstat:

 external/bsd/libarchive/Makefile.inc |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 9374444d0e21 -r 1b3ac85dd64f external/bsd/libarchive/Makefile.inc
--- a/external/bsd/libarchive/Makefile.inc      Thu Apr 20 19:09:29 2017 +0000
+++ b/external/bsd/libarchive/Makefile.inc      Thu Apr 20 20:34:24 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.2 2010/02/20 02:55:53 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.3 2017/04/20 20:34:24 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -12,4 +12,8 @@
 LIBARCHIVE_FE_DIR!=    cd ${.PARSEDIR}/lib/libarchive_fe && ${PRINTOBJDIR}
 LIBARCHIVE_FE=         ${LIBARCHIVE_FE_DIR}/libarchive_fe.a
 
+# GCC applies the check even for same functions like strftime,
+# completely defeating the purpose.
+CWARNFLAGS.gcc+=       -Wno-format-nonliteral
+
 WARNS?=        4



Home | Main Index | Thread Index | Old Index