Created attachment 150734 [details] 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.
Auto-assigned to maintainer glebius@FreeBSD.org
A commit references this bug: Author: glebius Date: Fri Dec 19 04:56:04 UTC 2014 New revision: 374939 URL: https://svnweb.freebsd.org/changeset/ports/374939 Log: Update to new version. Fixes build with clang. PR: 196105 Submitted by: dim Changes: head/astro/gpxloggerd/Makefile head/astro/gpxloggerd/distinfo