Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 May 2016 22:58:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209371] comms/svxlink: Fix build with libc++ 3.8.0
Message-ID:  <bug-209371-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 209371
           Summary: comms/svxlink: 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: hamradio@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: hamradio@FreeBSD.org
             Flags: maintainer-feedback?(hamradio@FreeBSD.org)

Created attachment 170105
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170105&action=
=3Dedit
Fix type for abs() call in comms/svxlink

During the exp-run in bug 208158, it was found that comms/svxlink gives err=
ors
with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/comms/svxlink/work/svxlink-15.11/src/async/audio/AsyncAu=
dioDeviceAlsa.cpp:551:7:
error: call to 'abs' is ambiguous
  if (::abs(real_rate - sample_rate) > 100)
      ^~~~~

This is because abs() is being called with an unsigned argument.  Fix this =
by
casting 'real_rate' to int, since it was assigned from 'sample_rate' anyhow.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_=
10h29m48s/logs/errors/svxlink-15.11.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-209371-13>