diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-20 13:42:26 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-20 13:42:26 -0300 |
| commit | be78aeae4c429d7d68af3a3e1b0cf8e52fcff160 (patch) | |
| tree | e81d25014e238f589997f109ba10a875c3a875dc /ltests.c | |
| parent | 5bc47fe83087e0686f4639d031801837846e4c65 (diff) | |
| download | lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.gz lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.bz2 lua-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.zip | |
Default for warnings changed to "off"
Warnings are mostly a tool to help developers (e.g., by showing hidden
error messages); regular users usually don't need to see them.
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -92,7 +92,7 @@ static int tpanic (lua_State *L) { | |||
| 92 | static void warnf (void *ud, const char *msg, int tocont) { | 92 | static void warnf (void *ud, const char *msg, int tocont) { |
| 93 | lua_State *L = cast(lua_State *, ud); | 93 | lua_State *L = cast(lua_State *, ud); |
| 94 | static char buff[200] = ""; /* should be enough for tests... */ | 94 | static char buff[200] = ""; /* should be enough for tests... */ |
| 95 | static int onoff = 1; | 95 | static int onoff = 0; |
| 96 | static int mode = 0; /* start in normal mode */ | 96 | static int mode = 0; /* start in normal mode */ |
| 97 | static int lasttocont = 0; | 97 | static int lasttocont = 0; |
| 98 | if (!lasttocont && !tocont && *msg == '@') { /* control message? */ | 98 | if (!lasttocont && !tocont && *msg == '@') { /* control message? */ |
