Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2016 21:23:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209561] editors/kate: Fix build with libc++ 3.8.0
Message-ID:  <bug-209561-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209561

            Bug ID: 209561
           Summary: editors/kate: Fix build with libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)
          Assignee: kde@FreeBSD.org

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

During the exp-run in bug 208158, it was found that editors/kate gives erro=
rs
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 =3D 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_=
10h29m48s/logs/errors/kate-4.14.3_1.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-209561-13>