[16/17] msvc: avoid debug assertion windows in Debug Mode
diff mbox series

Message ID 831d603e2518894fe66b70089a296b5d11a9870f.1560860634.git.gitgitgadget@gmail.com
State New
Headers show
  • Fix MSVC support, at long last
Related show

Commit Message

Elijah Newren via GitGitGadget June 18, 2019, 12:24 p.m. UTC
From: Johannes Schindelin <johannes.schindelin@gmx.de>

For regular debugging, it is pretty helpful when a debug assertion in a
running application triggers a window that offers to start the debugger.

However, when running the test suite, it is not so helpful, in
particular when the debug assertions are then suppressed anyway because
we disable the invalid parameter checking (via invalidcontinue.obj, see
the comment in config.mak.uname about that object for more information).

So let's simply disable that window in Debug Mode (it is already
disabled in Release Mode).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 compat/mingw.c | 4 ++++
 1 file changed, 4 insertions(+)

diff mbox series

diff --git a/compat/mingw.c b/compat/mingw.c
index 8b56aa5773..cdb99b940e 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -2438,6 +2438,10 @@  int wmain(int argc, const wchar_t **wargv)
 #ifdef _MSC_VER
+#ifdef _DEBUG