[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Ted Unangst <ted.unangst@...>
- Date: Mon, 11 Jan 2010 09:46:09 -0500
On Mon, Jan 11, 2010 at 8:13 AM, Roberto Ierusalimschy
>> 2010/1/8 Luiz Henrique de Figueiredo <email@example.com>:
>> > All feedback welcome. Thanks.
>> The bsd target works on OpenBSD 4.3/i386, but the compiler complains:
>> liblua.a(loslib.o)(.text+0x136): In function `os_tmpname':
>> : warning: strcpy() is almost always misused, please use strlcpy()
>> liblua.a(lobject.o)(.text+0x40f): In function `luaO_pushvfstring':
>> : warning: sprintf() is often misused, please use snprintf()
> And how do we tell the compiler that we are not "misusing" them?
You can't. Those warnings actually come from the linker, not the
compiler, and as far as I'm aware, there's no way to suppress them.
(It's designed to work that way.)