[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: -Wstring-plus-int warning when building Lua with clang
- From: Michał Górny <mgorny@...>
- Date: Fri, 12 Apr 2019 20:23:43 +0200
Hi,
I've just built Lua (tried both 5.3.5 and 5.4.0-work2) using clang,
and I've noticed clang-8 reports a warning in one of the files. This is
of course not a problem but figured you might want to know.
$ make linux CC=clang CXX=clang++
[...]
clang -O2 -Wall -Wextra -DLUA_COMPAT_5_3 -DLUA_USE_LINUX -c -o lundump.o lundump.c
lundump.c:265:33: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
~~~~~~~~~~~~~~^~~
lundump.c:265:33: note: use array indexing to silence this warning
checkliteral(S, LUA_SIGNATURE + 1, "not a"); /* 1st char already checked */
^
& [ ]
1 warning generated.
Also, your mailman instance crashes when I type my name (because of non-
ASCII characters).
--
Best regards,
Michał Górny
Attachment:
signature.asc
Description: This is a digitally signed message part