[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (rc3) now available
- From: Xavier Wang <weasley.wx@...>
- Date: Sat, 3 Jan 2015 15:36:16 +0800
I have meet a strange issue with a modified one.c.
with standard build method, Lua 5.3 is okay without any warning. but
with one.c , it produce this warning:
D:\Work\Sources\lua-5.3.0\build>D:\mingw\bin\gcc -o lua52.exe -s -O2
-Wall -I../src one.c
In file included from one.c:51:0:
../src/lobject.c: In function 'luaO_tostring':
../src/lobject.c:327:5: warning: unknown conversion type character 'l'
in format [-Wformat=]
len = lua_integer2str(buff, ivalue(obj));
^
../src/lobject.c:327:5: warning: too many arguments for format
[-Wformat-extra-args]
In file included from one.c:73:0:
../src/liolib.c: In function 'g_write':
../src/liolib.c:610:17: warning: unknown conversion type character 'l'
in format [-Wformat=]
? fprintf(f, LUA_INTEGER_FMT, lua_tointeger(L, arg))
^
../src/liolib.c:610:17: warning: too many arguments for format
[-Wformat-extra-args]
D:\Work\Sources\lua-5.3.0\build>
BUT, with the same compiler (MInGW-w64, 4.8.3), use make mingw is all
okay, and just compile lobject.c is also okay, the warning only occurs
when using one.c.
the one.c is here:
/*
* one.c -- Lua core, libraries, and interpreter in a single file
*/
/* default is to build the full interpreter */
#ifndef MAKE_LIB
#ifndef MAKE_LUAC
#ifndef MAKE_LUA
#define MAKE_LUA
#endif
#endif
#endif
/* choose suitable platform-specific features */
/* some of these may need extra libraries such as -ldl -lreadline -lncurses */
#if 0
#define LUA_USE_LINUX
#define LUA_USE_MACOSX
#define LUA_USE_POSIX
#define LUA_ANSI
#endif
/* no need to change anything below this line ----------------------------- */
/* setup for luaconf.h */
#define LUA_CORE
#define LUA_LIB
#define ltable_c
#define lvm_c
#include "luaconf.h"
/* do not export internal symbols */
#undef LUAI_FUNC
#undef LUAI_DDEC
#undef LUAI_DDEF
#define LUAI_FUNC static
#define LUAI_DDEC static
#define LUAI_DDEF static
/* core -- used by all */
#include "lapi.c"
#include "lcode.c"
#include "lctype.c"
#include "ldebug.c"
#include "ldo.c"
#include "ldump.c"
#include "lfunc.c"
#include "lgc.c"
#include "llex.c"
#include "lmem.c"
#include "lobject.c"
#include "lopcodes.c"
#include "lparser.c"
#include "lstate.c"
#include "lstring.c"
#include "ltable.c"
#include "ltm.c"
#include "lundump.c"
#include "lvm.c"
#include "lzio.c"
/* auxiliary library -- used by all */
#include "lauxlib.c"
/* standard library -- not used by luac */
#ifndef MAKE_LUAC
#include "lbaselib.c"
#if LUA_VERSION_NUM == 502
# include "lbitlib.c"
#endif
#include "lcorolib.c"
#include "ldblib.c"
#include "liolib.c"
#include "lmathlib.c"
#include "loadlib.c"
#include "loslib.c"
#include "lstrlib.c"
#include "ltablib.c"
#if LUA_VERSION_NUM >= 503
# include "lutf8lib.c"
#endif
#include "linit.c"
#endif
/* lua */
#ifdef MAKE_LUA
#include "lua.c"
#endif
/* luac */
#ifdef MAKE_LUAC
#include "luac.c"
#endif
2015-01-02 21:36 GMT+08:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> Lua 5.3.0 (rc3) is now available for testing at
> http://www.lua.org/work/lua-5.3.0-rc3.tar.gz
>
> MD5 5dd17d29fbb70139d315e2cea751a128 -
> SHA1 83e26c3c21abe7c309c5e9df08b6a7a7db85ef2a -
>
> This is a release candidate for the final release of Lua 5.3.0.
>
> A few things have changed since beta that we'd like to test in the wild.
> In particular, we made some changes in luaconf.h and in the Makefile
> that we'd like to test. Please try compiling the current code in as many
> platforms as possible. We expect the compilation will go smoothly as usual
> but please report any warnings or other glitches.
>
> We'd also like feedback on the documentation:
> http://www.lua.org/work/doc/readme.html
> http://www.lua.org/work/doc/contents.html
> http://www.lua.org/work/doc/manual.html
>
> Finally, for those of you into this, please test luac -l -l on your
> scripts, just to make sure we haven't missed anything with the new
> VM instructions etc.
>
> The main change in Lua 5.3.0 is the introduction of integers. See also
> http://www.lua.org/work/doc/#changes
>
> The complete diffs are available at
> http://www.lua.org/work/diffs-lua-5.3.0-rc2-rc3.txt
>
> An updated test suite is available at
> http://www.lua.org/work/lua-5.3.0-rc3-tests.tar.gz
>
> All feedback welcome. Thanks.
> --lhf
>
>
--
regards,
Xavier Wang.