[Bug 196105] New: Fix astro/gpxloggerd build with clang 3.5.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 18 20:16:28 UTC 2014


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 at FreeBSD.org
          Reporter: dim at FreeBSD.org
          Assignee: glebius at FreeBSD.org
             Flags: maintainer-feedback?(glebius at 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 at FreeBSD.org> ---
Auto-assigned to maintainer glebius at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list