[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] Misc Warnings...
From: |
Hal Murray |
Subject: |
[gpsd-dev] Misc Warnings... |
Date: |
Fri, 09 Sep 2016 14:52:14 -0700 |
>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]
--
These are my opinions. I hate spam.
- [gpsd-dev] Misc Warnings...,
Hal Murray <=