Bug 246798 - textproc/libcss: fails to build with implicit conversion error from 'int' to 'float'
Summary: textproc/libcss: fails to build with implicit conversion error from 'int' to ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2020-05-28 05:30 UTC by rozhuk.im
Modified: 2020-07-05 14:24 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rozhuk.im 2020-05-28 05:30:36 UTC
FreeBSD 12.1, amd64, clang10 from base.

...
 COMPILE: src/parse/properties/border_style.c
In file included from src/charset/detect.c:13:
In file included from src/charset/detect.h:14:
In file included from include/libcss/functypes.h:20:
In file included from include/libcss/types.h:22:
include/libcss/fpmath.h:104:11: error: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-int-float-conversion]
        if (xx > INT_MAX)
               ~ ^~~~~~~
/usr/include/sys/limits.h:60:18: note: expanded from macro 'INT_MAX'
#define INT_MAX         __INT_MAX       /* max value for an int */
                        ^~~~~~~~~
/usr/include/x86/_limits.h:59:19: note: expanded from macro '__INT_MAX'
#define __INT_MAX       0x7fffffff      /* max value for an int */
                        ^~~~~~~~~~
....