diff options
author | maya <maya@pkgsrc.org> | 2019-01-21 07:39:48 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2019-01-21 07:39:48 +0000 |
commit | 7ded4ce9b9df548f24c86374dd0e866d4b9e7398 (patch) | |
tree | 01d686723e823854cc58cd48ab34a7d13d583ea4 /devel/cmocka | |
parent | 72e6c1bf319ac1169c7405e3edf7f846f59c75de (diff) | |
download | pkgsrc-7ded4ce9b9df548f24c86374dd0e866d4b9e7398.tar.gz |
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 (limited to 'devel/cmocka')
-rw-r--r-- | devel/cmocka/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/devel/cmocka/Makefile b/devel/cmocka/Makefile index 4658d2af14e..19767e40239 100644 --- a/devel/cmocka/Makefile +++ b/devel/cmocka/Makefile @@ -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 @@ 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 |