- Fixes the following gcc compiler warning:
rrdlua.c:69:21: warning: assignment discards ‘const’ qualifier from
pointer target type [-Wdiscarded-qualifiers]
if (!(argv[i] = lua_tostring (L, i))) {
for (i=1; i<argc; i++) {
/* accepts string or number */
if (lua_isstring(L, i) || lua_isnumber(L, i)) {
- if (!(argv[i] = lua_tostring (L, i))) {
+ if (!(argv[i] = (char *) lua_tostring (L, i))) {
/* raise an error and never return */
luaL_error(L, "%s - error duplicating string area for arg #%d",
cmd, i);