Re: ffi.copy/ffi.string fails with volatile-qualified char array

  • From: Philipp Kutin <philipp.kutin@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 4 Nov 2013 14:14:19 +0100

On Mon, Nov 4, 2013 at 1:49 PM, Mike Pall <mike-1311@xxxxxxxxxx> wrote:
> Ok, so GCC treats it as a warning and the FFI treats it as an
> error. But implicit removal of qualifiers violates C semantics.

Ah OK, good to know, and in this light, agreed that it's the proper
LuaJIT behavior. I guess I need to forget about squishing bits of
meta-info using qualifers and go for the direct route. (The piece of
Lua code I'm writing is basically a system for describing ad-hoc
binary data formats.)

Thanks for clarifying.

--Philipp

Other related posts: