rochus-keller / BUSY

BUSY is a lean, statically typed, cross-platform, easily bootstrappable build system for GCC, CLANG and MSVC inspired by Google GN
GNU General Public License v2.0
81 stars 6 forks source link

Problem with the usage of tmpnam in loslib.c #3

Closed stefanos82 closed 1 year ago

stefanos82 commented 1 year ago

The following warning is thrown at the end of compilation procedure:

gcc *.c -O2 -lm -o lua
/usr/bin/ld: /tmp/ccoL5y7d.o: in function `os_tmpname':
loslib.c:(.text+0x2a0): warning: the use of `tmpnam' is dangerous, better use `mkstemp'

As far as I can see from official Lua website, since Lua 5.2 they offer an alternative to choose mkstemp if POSIX is available: https://www.lua.org/source/5.2/loslib.c.html

rochus-keller commented 1 year ago

Well, I don't think it's worth much effort; likely not the most "dangerous" aspect in our lifes ;-)

stefanos82 commented 1 year ago

If you like this erroneous behavior by the compilation procedure, no worries from me lol!

rochus-keller commented 1 year ago

There are still so many things to do that I just have to prioritize and ignore less important things.

stefanos82 commented 1 year ago

Break them down to smaller pieces to make your life easier to complete or have them listed as bullet points so others could jump in to help, if they know how and have the knowledge to do so? :thinking:

rochus-keller commented 1 year ago

I prefer outlines over bullet points, see https://github.com/rochus-keller/crossline/

stefanos82 commented 1 year ago

That would work too.