[x264-devel] checkasm: Disable Windows Error Reporting

Henrik Gramner git at videolan.org
Tue Apr 12 20:36:15 CEST 2016


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sun Feb  7 14:55:26 2016 +0100| [0db0ac3a05b80eee7994fab08cbce2d07e8b1586] | committer: Henrik Gramner

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.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=0db0ac3a05b80eee7994fab08cbce2d07e8b1586
---

 tools/checkasm.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/checkasm.c b/tools/checkasm.c
index 5839063..7aa960d 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



More information about the x264-devel mailing list