summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-20 13:42:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-20 13:42:26 -0300
commitbe78aeae4c429d7d68af3a3e1b0cf8e52fcff160 (patch)
treee81d25014e238f589997f109ba10a875c3a875dc /ltests.c
parent5bc47fe83087e0686f4639d031801837846e4c65 (diff)
downloadlua-github-be78aeae4c429d7d68af3a3e1b0cf8e52fcff160.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index 95c41fd9..0d4ec938 100644
--- a/ltests.c
+++ b/ltests.c
@@ -92,7 +92,7 @@ static int tpanic (lua_State *L) {
static void warnf (void *ud, const char *msg, int tocont) {
lua_State *L = cast(lua_State *, ud);
static char buff[200] = ""; /* should be enough for tests... */
- static int onoff = 1;
+ static int onoff = 0;
static int mode = 0; /* start in normal mode */
static int lasttocont = 0;
if (!lasttocont && !tocont && *msg == '@') { /* control message? */