Date: Sun, 14 Sep 2014 09:48:59 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193632] New: devel/json-c: Remove unconditional -Werror flag to fix build on modern gcc Message-ID: <bug-193632-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193632 Bug ID: 193632 Summary: devel/json-c: Remove unconditional -Werror flag to fix build on modern gcc Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: marino@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Created attachment 147304 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147304&action=edit Makefile patch to remove -Werror flag in $WRKSRC/Makefile.in The json-c makefile passes the -Werror flag during the build and it can't be turned off via the configure script. The Werror flag shouldn't be set in ports. Here's the failure on gcc47: json_tokener.c: In function 'json_tokener_parse_ex': json_tokener.c:355:6: error: variable 'size' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors The fix is attached. I can commit it if you approve. --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Auto-assigned to maintainer sunpoet@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193632-13>