Date: Wed, 27 Apr 2016 18:03:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209108] x11/fbdesk: Fix build with libc++ 3.8.0 Message-ID: <bug-209108-13-PwZehV40qx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-209108-13@https.bugs.freebsd.org/bugzilla/> References: <bug-209108-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209108 --- Comment #1 from Dimitry Andric <dim@FreeBSD.org> --- Created attachment 169765 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169765&action= =3Dedit Fix type for abs() call in x11/fbdesk During the exp-run in bug 208158, it was found that x11/fbdesk gives errors with libc++ 3.8.0 [1]: TextBox.cc:202:19: error: call to 'abs' is ambiguous tmp =3D abs(event.x - font().textWidth(m_text.c_str() + m_start= _pos, i - m_start_pos)); ^~~ This is because abs() is being called with unsigned arguments. Fix this by casting the arguments to the appropriate signed type. [1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_= 18h30m05s/logs/errors/fbdesk-1.4.1_6.log --=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-209108-13-PwZehV40qx>