pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/cmocka cmocka: avoid -Werror=uninitialized which...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be6576b44634
branches:  trunk
changeset: 318184:be6576b44634
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Jan 21 07:39:48 2019 +0000

description:
cmocka: avoid -Werror=uninitialized which incorrectly fires on wrong code
by GCC 4.3/4.4

Reported in https://github.com/NetBSD/pkgsrc/pull/41

diffstat:

 devel/cmocka/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 8b710f3cedb6 -r be6576b44634 devel/cmocka/Makefile
--- a/devel/cmocka/Makefile     Mon Jan 21 07:01:47 2019 +0000
+++ b/devel/cmocka/Makefile     Mon Jan 21 07:39:48 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2018/12/03 15:16:33 adam Exp $
+# $NetBSD: Makefile,v 1.7 2019/01/21 07:39:48 maya Exp $
 
 DISTNAME=      cmocka-1.1.3
 CATEGORIES=    devel
@@ -15,6 +15,10 @@
 CONFIGURE_DIRS=        ${WRKDIR}/build
 CMAKE_ARG_PATH=        ${WRKSRC}
 
+# GCC 4.3/4.4 provides wrong warnings:
+# cmocka.c:3281: error: 'setup_name' may be used uninitialized in this function
+CMAKE_ARGS+=   -DWITH_WERROR_UNINITIALIZED_FLAG=0
+
 post-extract:
        ${MKDIR} ${WRKDIR}/build
 



Home | Main Index | Thread Index | Old Index