[Bug 244233] devel/json-c: Fix build with clang 10.0.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Feb 19 19:42:47 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244233
Bug ID: 244233
Summary: devel/json-c: Fix build with clang 10.0.0
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: sunpoet at FreeBSD.org
Reporter: dim at FreeBSD.org
Assignee: sunpoet at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Created attachment 211764
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=211764&action=edit
Fix -Werror warning from clang 10.0.0
Fix the following -Werror warning from clang 10.0.0:
json_object.c:701:26: error: implicit conversion from 'long long' to 'double'
changes value from 9223372036854775807 to 9223372036854775808
[-Werror,-Wimplicit-int-float-conversion]
if (jso->o.c_double >= INT64_MAX)
~~ ^~~~~~~~~
/usr/include/x86/_stdint.h:94:19: note: expanded from macro 'INT64_MAX'
#define INT64_MAX 0x7fffffffffffffffLL
^~~~~~~~~~~~~~~~~~~~
Similar to fixes I made in head, the solution is to cast INT64_MAX to
double before comparing.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list