From 5003c981eecda92819eb5958696eb1e1f8442577 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 25 Oct 2002 21:27:52 +0000 Subject: [PATCH] Some changes to errorlevel Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@431 --- src/dosbox.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dosbox.cpp b/src/dosbox.cpp index 73950cc3..83ed464a 100644 --- a/src/dosbox.cpp +++ b/src/dosbox.cpp @@ -38,7 +38,7 @@ #include "support.h" Config * control; -Bitu errorlevel; +Bitu errorlevel=1; /* The whole load of startups for all the subfunctions */ void MSG_Init(Section_prop *); @@ -142,7 +142,11 @@ void DOSBOX_Init(void) { secprop=control->AddSection_prop("dosbox",&DOSBOX_RealInit); secprop->Add_string("language",""); +#if C_DEBUG secprop->Add_int("warnings",4); +#else + secprop->Add_int("warnings",0); +#endif secprop->AddInitFunction(&MEM_Init); secprop->AddInitFunction(&IO_Init);