From 0db0ac3a05b80eee7994fab08cbce2d07e8b1586 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Sun, 7 Feb 2016 14:55:26 +0100 Subject: [PATCH] checkasm: Disable Windows Error Reporting When developing new assembly code it's expected that checkasm may crash, and the error reporting dialog popup can be somewhat annoying. --- tools/checkasm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/checkasm.c b/tools/checkasm.c index 5839063d..7aa960d4 100644 --- a/tools/checkasm.c +++ b/tools/checkasm.c @@ -2823,6 +2823,11 @@ int main(int argc, char *argv[]) { int ret = 0; +#ifdef _WIN32 + /* Disable the Windows Error Reporting dialog */ + SetErrorMode( SEM_NOGPFAULTERRORBOX ); +#endif + if( argc > 1 && !strncmp( argv[1], "--bench", 7 ) ) { #if !ARCH_X86 && !ARCH_X86_64 && !ARCH_PPC && !ARCH_ARM && !ARCH_AARCH64 && !ARCH_MIPS -- 2.39.5