lua-users home
lua-l archive

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



On Jul 6, 2013, at 12:44 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

i586-mingw32msvc-gcc -O2 -Wall -Wextra -DLUA_COMPAT_ALL     -c -o lvm.o lvm.c
lvm.c: In function ‘luaV_tostring’:
lvm.c:57:7: warning: unknown conversion type character ‘l’ in format [-Wformat]

This is strange... "%ld" is quite standard (C89).

-- Roberto

fyi I'm seeing the same thing on OS X 10.8.4:

luac.c:265:24: warning: format specifies type 'double' but the argument has type
      'int' [-Wformat]
        printf(LUA_NUMBER_FMT,nvalue(o));
                              ^~~~~~~~~
luac.c:205:19: note: expanded from macro 'nvalue'
#define nvalue(x) 0