Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637696 - sys-apps/edac-utils-0.18: fails to build with USE=debug enabled
Summary: sys-apps/edac-utils-0.18: fails to build with USE=debug enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 17:46 UTC by Austin English (RETIRED)
Modified: 2019-04-13 16:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English (RETIRED) gentoo-dev 2017-11-16 17:46:45 UTC
make[3]: Entering directory '/var/tmp/portage/sys-apps/edac-utils-0.18/work/edac-utils-0.18/src/util'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../src/lib/   -Wall -Werror -pedantic -g -O2 -march=corei7 -g -pipe -c edac-util.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../src/lib/   -Wall -Werror -pedantic -g -O2 -march=corei7 -g -pipe -c list.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..  -I../../src/lib/   -Wall -Werror -pedantic -g -O2 -march=corei7 -g -pipe -c split.c
list.c: In function 'list_create':
list.c:235:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     assert(l->magic = LIST_MAGIC);      /* set magic via assert abuse */
     ^
list.c: In function 'list_destroy':
list.c:253:9: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
         assert(i->magic = ~LIST_MAGIC); /* clear magic via assert abuse */
         ^
list.c:265:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     assert(l->magic = ~LIST_MAGIC);     /* clear magic via assert abuse */
     ^
list.c: In function 'list_iterator_create':
list.c:537:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     assert(i->magic = LIST_MAGIC);      /* set magic via assert abuse */
     ^
list.c: In function 'list_iterator_destroy':
list.c:574:5: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
     assert(i->magic = ~LIST_MAGIC);     /* clear magic via assert abuse */
     ^
cc1: all warnings being treated as errors

builds fine if I set USE=-debug
Comment 1 Larry the Git Cow gentoo-dev 2019-04-13 16:56:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9df3466524c7e920d10ebb6e955723ac30651de7

commit 9df3466524c7e920d10ebb6e955723ac30651de7
Author:     Tiziano Müller <dev-zero@gentoo.org>
AuthorDate: 2019-04-13 16:53:57 +0000
Commit:     Tiziano Müller <dev-zero@gentoo.org>
CommitDate: 2019-04-13 16:53:57 +0000

    sys-apps/edac-utils: remove -Werror with USE=debug
    
    Closes: https://bugs.gentoo.org/637696
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tiziano Müller <dev-zero@gentoo.org>

 sys-apps/edac-utils/edac-utils-0.18.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)