lua-users home
lua-l archive

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




On Wed, Aug 31, 2016 at 9:29 AM, Niccolo Medici <niccolomedici@gmail.com> wrote:
In a project I'm writing I want to ensure my C code doesn't use
newfangled features, so I compile it with `-ansi` (or `-std=c90`). I'm
using gcc.

However, in this mode the compiler emits an error:

    /usr/include/lua5.3/luaconf.h:573:2:
    error: #error "Compiler does not support 'long long'. Use option
'-DLUA_32BITS'
    or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"

What should I do?


One possibility is to use, instead of -ansi, the flag -Wc90-c99-compat

This will issue warnings rather than errors for newfangledness.