[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Small issue with lfs compiled under mingw
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Thu, 28 Jul 2011 09:34:10 +0200
On 28/07/2011 1.26, Tom N Harris wrote:
On 07/27/2011 06:00 PM, Lorenzo Donati wrote:
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast
-Wcast-align -Wcast-qual -Wdeclaration-after-statement
-Wdisabled-optimization -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wunreachable-code -O2 -DNDEBUG -ansi
-I"G:\root\main\core\Lua\app\Lua-sys\include" -c lfs.c -o lfs.o \
&& gcc -shared -LG:\root\main\core\Lua\app\Lua-sys/bin
-LG:\root\main\core\Lua\app\Lua-sys/lib -O2 -Wall -pedantic -o lfs.dll
lfs.o -llua51 \
&& strip --strip-unneeded lfs.dll
You should remove the -ansi option. Many of the MSVC compatibility
macros are disabled in standards mode.
Thanks for the reply.
No, it doesn't work. I get less warnings, but some are still there and
the assertion failure still remains.
Now GCC tells me the following:
gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast
-Wcast-align -Wcast-qual -Wdeclaration-after-statement
-Wdisabled-optimization -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wunreachable-code -O2 -DNDEBUG
-I"G:\root\main\core\Lua\app\Lua-sys\include" -c lfs.c -o lfs.o \
&& gcc -shared -LG:\root\main\core\Lua\app\Lua-sys/bin
-LG:\root\main\core\Lua\app\Lua-sys/lib -O2 -Wall -pedantic -o lfs.dll
lfs.o -llua51 \
&& strip --strip-unneeded lfs.dll
lfs.c: In function 'file_utime':
lfs.c:597:16: warning: cast from function call of type 'lua_Number' to
non-matching type 'long int'
lfs.c:598:17: warning: cast from function call of type 'lua_Number' to
non-matching type 'long int'
lfs.c: In function 'push_invalid':
lfs.c:665:54: warning: unused parameter 'info'
and the failure is still:
G:\root\main\core\Lua\tools\..\app\Lua51\lua.exe: test.lua:129:
assertion failed!
stack traceback:
[C]: in function 'assert'
test.lua:129: in main chunk
[C]: ?
LuaFileSystem 1.5.0
-- Lorenzo