mirror of https://github.com/minetest/minetest.git
Fix gcc warning for lua
Warning message: src/lua/src/loslib.c:60: Warning: the use of `tmpnam' is dangerous, better use `mkstemp'
This commit is contained in:
parent
704453ff12
commit
ff78aa1fc7
|
@ -47,10 +47,6 @@ else()
|
||||||
endif()
|
endif()
|
||||||
mark_as_advanced(LUA_USE_DLOPEN)
|
mark_as_advanced(LUA_USE_DLOPEN)
|
||||||
|
|
||||||
if(DEFAULT_POSIX)
|
|
||||||
else()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(DEFAULT_ANSI)
|
if(DEFAULT_ANSI)
|
||||||
option(LUA_ANSI "Disable non-ansi features." ON)
|
option(LUA_ANSI "Disable non-ansi features." ON)
|
||||||
else()
|
else()
|
||||||
|
@ -87,6 +83,10 @@ if(LUA_USE_DLOPEN)
|
||||||
endif(NOT APPLE)
|
endif(NOT APPLE)
|
||||||
endif(LUA_USE_DLOPEN)
|
endif(LUA_USE_DLOPEN)
|
||||||
|
|
||||||
|
if(DEFAULT_POSIX)
|
||||||
|
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_POSIX")
|
||||||
|
endif(DEFAULT_POSIX)
|
||||||
|
|
||||||
if(LUA_ANSI)
|
if(LUA_ANSI)
|
||||||
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI")
|
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI")
|
||||||
endif(LUA_ANSI)
|
endif(LUA_ANSI)
|
||||||
|
|
Loading…
Reference in New Issue