Am 03.01.2015 um 15:23 schröbte Lorenzo Donati:
Compiled with TDM-GCC 4.8.1-32bit under Windows-7 64bit (yes 32 bit
compiler in a 64bit machine) and got some warnings:
[...]
lua.c: In function 'pmain':
lua.c:584:5: warning: implicit declaration of function '_fileno'
[-Wimplicit-function-declaration]
if (lua_stdin_is_tty()) { /* running in interactive mode? */
^
liolib.c: In function 'io_pclose':
liolib.c:260:3: warning: implicit declaration of function '_pclose'
[-Wimplicit-function-declaration]
return luaL_execresult(L, l_pclose(L, p->f));
^
liolib.c: In function 'io_popen':
liolib.c:268:3: warning: implicit declaration of function '_popen'
[-Wimplicit-function-declaration]
p->f = l_popen(L, filename, mode);
^
liolib.c:268:8: warning: assignment makes pointer from integer
without a
cast [enabled by default]
p->f = l_popen(L, filename, mode);
^
Those are probably the result of the new `-std=c99` flag in the
makefile: `-std=c99` implies `__STRICT_ANSI__`, and the above
mentioned functions are not declared if `__STRICT_ANSI__` is in
effect.
We could replace `-std=c99` with `-std=gnu99` for all architectures,
or just append `-std=gnu99` to the compiler command line (after the
`-std=c99`) for the mingw target only.