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.
This commit is contained in:
Roberto Ierusalimschy
2019-08-20 13:42:26 -03:00
parent 5bc47fe830
commit be78aeae4c
10 changed files with 23 additions and 17 deletions

View File

@@ -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? */