[Bug 193632] New: devel/json-c: Remove unconditional -Werror flag to fix build on modern gcc
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 14 09:48:59 UTC 2014
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 at FreeBSD.org
Reporter: marino at FreeBSD.org
Assignee: sunpoet at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at 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 at FreeBSD.org> ---
Auto-assigned to maintainer sunpoet at FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list