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/5ed6da052a18
branches:  trunk
changeset: 823373:5ed6da052a18
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 1310c1d10298 -r 5ed6da052a18 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