Skip to content

Commit 29f3ad2

Browse files
committed
cmocka: avoid -Werror=uninitialized which incorrectly fires on wrong code
by GCC 4.3/4.4 Reported in NetBSD#41
1 parent 84a6b66 commit 29f3ad2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

devel/cmocka/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.6 2018/12/03 15:16:33 adam Exp $
1+
# $NetBSD: Makefile,v 1.7 2019/01/21 07:39:48 maya Exp $
22

33
DISTNAME= cmocka-1.1.3
44
CATEGORIES= devel
@@ -15,6 +15,10 @@ USE_CMAKE= yes
1515
CONFIGURE_DIRS= ${WRKDIR}/build
1616
CMAKE_ARG_PATH= ${WRKSRC}
1717

18+
# GCC 4.3/4.4 provides wrong warnings:
19+
# cmocka.c:3281: error: 'setup_name' may be used uninitialized in this function
20+
CMAKE_ARGS+= -DWITH_WERROR_UNINITIALIZED_FLAG=0
21+
1822
post-extract:
1923
${MKDIR} ${WRKDIR}/build
2024

0 commit comments

Comments
 (0)