gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] featuretest macros


From: Greg Troxel
Subject: Re: [gpsd-dev] featuretest macros
Date: Sat, 22 Jun 2019 08:49:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix)

"Gary E. Miller" <address@hidden> writes:

> Yo Greg!
>
> On Fri, 21 Jun 2019 20:56:02 -0400
> Greg Troxel <address@hidden> wrote:
>
>> > These are the one you sent earlier this week?  
>> 
>> Yes, the ones I sent, copied below.
>
> I think these are now fixed in git head.  Please test.

I built on netbsd-8 amd64 and got no warnings.

I see %u used to print uint32_t.  But %u is "unsigned int", and on ILP64
platforms (like I'm 99% sure alpha is), uint32_t will not be unsigned
int.  So in practice, this is likely to be ok, as almost all computers
in practice now are ILP32 or LP64.

I think strictly it needs PRIu32 as detailed here

  
https://stackoverflow.com/questions/12120426/how-do-i-print-uint32-t-and-uint16-t-variables-value




reply via email to

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