Module Name: src
Committed By: martin
Date: Fri Jan 17 20:24:20 UTC 2014
Modified Files:
src/external/bsd/file: Makefile.inc
Log Message:
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)
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/file/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/file/Makefile.inc
diff -u src/external/bsd/file/Makefile.inc:1.4 src/external/bsd/file/Makefile.inc:1.5
--- src/external/bsd/file/Makefile.inc:1.4 Sun Dec 1 20:15:42 2013
+++ src/external/bsd/file/Makefile.inc Fri Jan 17 20:24:20 2014
@@ -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 @@ CPPFLAGS+= -DMAGIC='"${MAGIC}"' -DHAVE_C
-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