[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Warnings when compiling the Lua 5.3.5 interpreter by gcc version 7.4.0
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 9 May 2019 18:26:07 +0200
I can't remember that this happened in 2017, but 'make linux' now gives:
lua.c: In function ‘runargs’:
lua.c:531:31: warning: passing argument 2 of ‘dolibrary’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
: dolibrary(L, extra);
^~~~~
lua.c:259:12: note: expected ‘char *’ but argument is of type ‘const char *’
static int dolibrary (lua_State *L, char *name) {
^~~~~~~~~