gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] driver_skytraq.c on CentOS 6.6 i686 - "'for' loop initial


From: Fred Wright
Subject: Re: [gpsd-dev] driver_skytraq.c on CentOS 6.6 i686 - "'for' loop initial declarations are only allowed in C99 mode"
Date: Thu, 31 Mar 2016 13:04:22 -0700 (PDT)

On Thu, 31 Mar 2016, Gary E. Miller wrote:
> On Thu, 31 Mar 2016 07:20:13 -0400
> Jason Azze <address@hidden> wrote:
>
> > 22:14:26 driver_skytraq.c:178: error: 'for' loop initial declarations
> > are only allowed in C99 mode
>
> Good catch!  My bad.
>
> I'm not sure why that is not valid, but it is now fixed and pushed.

That placement of the declaration is one of those features that's nice to
have in principle, but too late to the party to rely on in code that's
trying to be compatible with older compilers.

At least using ANSI prototypes is pretty safe these days; I remember when
it wasn't. :-)

Fred Wright



reply via email to

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