Date: Fri, 19 Dec 2014 13:26:04 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 196124] New: Fix lang/urweb build with clang 3.5.0 Message-ID: <bug-196124-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: dim@FreeBSD.org CC: beyert@cs.ucr.edu CC: beyert@cs.ucr.edu Flags: maintainer-feedback?(beyert@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@FreeBSD.org> --- Maintainer CC'd -- 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-196124-13>