Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2014 20:16:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 196105] New: Fix astro/gpxloggerd build with clang 3.5.0
Message-ID:  <bug-196105-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 196105
           Summary: Fix astro/gpxloggerd 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: glebius@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: glebius@FreeBSD.org
             Flags: maintainer-feedback?(glebius@FreeBSD.org)

Created attachment 150734
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=150734&action=edit
Fix astro/gpxloggerd build with clang 3.5.0

On arches with 64-bit time_t, astro/gpxloggerd will fail to compile with clang
3.5.0, due to the following -Werror warning:

gpxloggerd.c:199:6: error: absolute value function 'abs' given an argument of
type 'long' but has parameter of type 'int' which may cause truncation of value
[-Werror,-Wabsolute-value]
        if (abs(t - ot) < interval)
            ^
gpxloggerd.c:199:6: note: use function 'labs' instead
        if (abs(t - ot) < interval)
            ^~~
            labs

In this case, replacing the call with labs() is just fine.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer glebius@FreeBSD.org

-- 
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-196105-13>