[kde-freebsd] maintainer-feedback requested: [Bug 209561] editors/kate: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 16 21:23:46 UTC 2016


Dimitry Andric <dim at FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to kde at FreeBSD.org:
Bug 209561: editors/kate: Fix build with libc++ 3.8.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209561



--- Description ---
Created attachment 170375
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170375&action=edit
Fix type for abs() call in editors/kate

During the exp-run in bug 208158, it was found that editors/kate gives errors
with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/editors/kate/work/kate-4.14.3/part/view/kateviewhelpers.cpp:
1706:24:
error: call to 'abs' is ambiguous
	    int diff = abs(realLine - currentLine);
		       ^~~

This is because 'realLine' is int, and 'currentLine' is unsigned, making the
whole expression unsigned.  Make 'currentLine' int to fix the problem.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_10h2
9m48s/logs/errors/kate-4.14.3_1.log


More information about the kde-freebsd mailing list