[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux
From: |
Fred Wright |
Subject: |
Re: [gpsd-dev] [PATCH 3/3] Fix access to shared memory on Linux |
Date: |
Mon, 6 Mar 2017 17:32:05 -0800 (PST) |
On Mon, 6 Mar 2017, Gary E. Miller wrote:
[...]
> Now you define the variable inline. Many compilers only allow
> defining a stack var at the top of a block. So this will fail
> on older compilers.
That restriction was lifted in C99. Since GPSD is already relying on
other >=C99 features, I don't think that usage adds any new compiler
constraints. That being said, I tend not to use late declarations myself
without good reason.
I haven't looked at the actual patch in detail yet.
Fred Wright