Skip to content

Commit

Permalink
cmocka: avoid -Werror=uninitialized which incorrectly fires on wrong …
Browse files Browse the repository at this point in the history
…code

by GCC 4.3/4.4

Reported in NetBSD#41
  • Loading branch information
coypoop committed Jan 21, 2019
1 parent 84a6b66 commit 29f3ad2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devel/cmocka/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -15,6 +15,10 @@ USE_CMAKE= yes
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

Expand Down

0 comments on commit 29f3ad2

Please sign in to comment.