gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Today's warnings....


From: Hal Murray
Subject: Re: [gpsd-dev] Today's warnings....
Date: Fri, 12 Aug 2016 16:08:51 -0700

address@hidden said:
>> timespec_str.c:48:12: warning: absolute value function 'labs' given
> You are not on git head.  That was fixed. 

I think you fixed something similar but missed this one.  The problem is that 
time_t is long long on FreeBSD but labs takes a long.  Patch after I test it.


New one...

NetBSD can't find llabs.  ????

timespec_str.c:52:6: warning: implicit declaration of function 'llabs' 
[-Wimplicit-function-declaration]

>From their stdlib.h:

/* 
 * ISO C99
 */   
#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \  
    defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L
 
/* LONGLONG */
long long int   atoll(const char *);
/* LONGLONG */
long long int   llabs(long long int);
...



-- 
These are my opinions.  I hate spam.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]