gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Lots of warnings


From: Joshua Judson Rosen
Subject: Re: [gpsd-dev] Lots of warnings
Date: Wed, 10 Aug 2016 09:45:54 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0

On 08/09/2016 09:49 PM, Gary E. Miller wrote:
>> timespec_str.c:48:12: warning: absolute value function 'labs' given
>> an argument of type 'const time_t' (aka 'const long long') but has
>> parameter of type 'long' which may cause truncation of value
>> [-Wabsolute-value] 
> 
> Huh???  time_t is a long!

Not according to that error-message, which says that it's a *long long*
(like in the opening line of the song "American Pie", not in the
 opening line of the Star Wars Episode IV).

In order to have a 64-bit time_t and escape the 2038 problem,
wouldn't time_t have to be at least equivalent to "long long"
on 32-bit platforms where "long" is still only 32 bits?

I for example haven't had any desktops there were less than 64-bit for a while,
but I still have *lots* of 32-bit embedded Linux devices--ranging
from cheap routers to expensive robots.

-- 
"Don't be afraid to ask (λf.((λx.xx) (λr.f(rr))))."



reply via email to

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