Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/file Make a gcc 4.8 warning non-fatal (couldn't...



details:   https://anonhg.NetBSD.org/src/rev/15a365a6bcd7
branches:  trunk
changeset: 792826:15a365a6bcd7
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 17 20:24:20 2014 +0000

description:
Make a gcc 4.8 warning non-fatal (couldn't find a way to avoid it, the
data is initialized via memcpy to a void pointer, so the "may be uninitialized"
warning is not true)

diffstat:

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

diffs (18 lines):

diff -r 217ca8710b95 -r 15a365a6bcd7 external/bsd/file/Makefile.inc
--- a/external/bsd/file/Makefile.inc    Fri Jan 17 19:39:51 2014 +0000
+++ b/external/bsd/file/Makefile.inc    Fri Jan 17 20:24:20 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.4 2013/12/01 20:15:42 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.5 2014/01/17 20:24:20 martin Exp $
 
 WARNS=4
 DIST=${NETBSDSRCDIR}/external/bsd/file/dist
@@ -20,4 +20,8 @@
                -DELFCORE -DVERSION='"${VERSION}"'
 CPPFLAGS+=     -I${.CURDIR}/../include -I${DIST}/src
 
+.if ${ACTIVE_CC}=="gcc" && ${HAVE_GCC}=="48"
+CPPFLAGS.readelf.c     += -Wno-error=maybe-uninitialized
+.endif
+
 .PATH:         ${DIST}/src ${DIST}/doc



Home | Main Index | Thread Index | Old Index