diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 09:51:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 09:51:54 -0300 |
commit | ca13be9af784b7288d3a07d9b5bccb329086e885 (patch) | |
tree | c027419f98064d681518a4130439920a13a11b06 /lauxlib.c | |
parent | a1d8eb27431c02c4529be1efd92143ad65434f3a (diff) | |
download | lua-ca13be9af784b7288d3a07d9b5bccb329086e885.tar.gz lua-ca13be9af784b7288d3a07d9b5bccb329086e885.tar.bz2 lua-ca13be9af784b7288d3a07d9b5bccb329086e885.zip |
Supressed errors in '__close' generate warnings
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1010,9 +1010,9 @@ static int panic (lua_State *L) { | |||
1010 | static void warnf (void *ud, const char *message, int tocont) { | 1010 | static void warnf (void *ud, const char *message, int tocont) { |
1011 | int *warnstate = (int *)ud; | 1011 | int *warnstate = (int *)ud; |
1012 | if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */ | 1012 | if (*warnstate != 2 && !tocont && *message == '@') { /* control message? */ |
1013 | if (strcmp(message + 1, "off") == 0) | 1013 | if (strcmp(message, "@off") == 0) |
1014 | *warnstate = 0; | 1014 | *warnstate = 0; |
1015 | else if (strcmp(message + 1, "on") == 0) | 1015 | else if (strcmp(message, "@on") == 0) |
1016 | *warnstate = 1; | 1016 | *warnstate = 1; |
1017 | return; | 1017 | return; |
1018 | } | 1018 | } |