[Bug 196124] New: Fix lang/urweb build with clang 3.5.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 19 13:26:04 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196124

            Bug ID: 196124
           Summary: Fix lang/urweb build with clang 3.5.0
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: dim at FreeBSD.org
                CC: beyert at cs.ucr.edu
                CC: beyert at cs.ucr.edu
             Flags: maintainer-feedback?(beyert at cs.ucr.edu)

Created attachment 150761
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150761&action=edit
Fix lang/urweb build with clang 3.5.0

The lang/urweb port fails to compile with clang 3.5.0, due to the following
-Werror warning:

urweb.c:4207:12: error: absolute value function 'abs' given an argument of type
'uw_Basis_int' (aka 'long long') but has parameter of type 'int' which may
cause truncation of value [-Werror,-Wabsolute-value]
    return abs(ret);
           ^
urweb.c:4207:12: note: use function 'llabs' instead
    return abs(ret);
           ^~~
           llabs

In this case the fix is to do as clang suggests: both the type of 'ret' and the
return type of the function are 'long long', so llabs() should be used.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainer CC'd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list