[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Misc Warnings...
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] Misc Warnings... |
Date: |
Fri, 9 Sep 2016 15:19:33 -0700 |
Yo Hal!
I don't run any of the first 3 OS. Can you make a patch?
I do not get that error on my FreeBSD (10.3).
On Fri, 09 Sep 2016 14:52:14 -0700
Hal Murray <address@hidden> wrote:
> From CentOS-7 and Debian wheezy
>
> gpsd.c:2001:2: warning: implicit declaration of function 'daemon'
> [-Wimplicit-function-declaration]
> gpsd.c:2117:2: warning: implicit declaration of function 'setgroups'
> [-Wimplicit-function-declaration]
>
> Man pages say:
> daemon(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
> setgroups(): _BSD_SOURCE
>
> ---------
>
> From NetBSD
>
> timespec_str.c:52:6: warning: implicit declaration of function
> 'llabs' [-Wimplicit-function-declaration]
> timespec_str.c:52:17: warning: incompatible implicit declaration of
> built-in function 'llabs' [enabled by default]
>
> /usr/include/stdlib.h says:
>
> #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L ||
> \ defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
>
> -----------
>
> On FreeBSD
>
> This is from a Raspberry Pi
> PCs are clean, but maybe I don't have an old enough 32 bit system
> No squawk from a BBB
>
> gpsmon.c:248:21: warning: absolute value function 'labs' given an
> argument of type 'time_t' (aka 'long long') but has parameter of type
> 'long' which may cause truncation of value [-Wabsolute-value]
> gpsmon.c:278:28: warning: absolute value function 'labs' given an
> argument of type 'time_t' (aka 'long long') but has parameter of type
> 'long' which may cause truncation of value [-Wabsolute-value]
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgpVs7QrShZvN.pgp
Description: OpenPGP digital signature