Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2020 19:42:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 244233] devel/json-c: Fix build with clang 10.0.0
Message-ID:  <bug-244233-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244233

            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@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Created attachment 211764
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D211764&action=
=3Dedit
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 'doubl=
e'
changes value from 9223372036854775807 to 9223372036854775808
[-Werror,-Wimplicit-int-float-conversion]
                if (jso->o.c_double >=3D 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.

--=20
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-244233-7788>