summaryrefslogtreecommitdiffstats
path: root/examples/example-winmain/main.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2025-05-02 20:08:49 +0000
committerGitHub <noreply@github.com>2025-05-02 20:08:49 +0000
commit1b539d8907af3cc77e52e8cf4edf029964e0423a (patch)
treeeaf344818874cd748d44293b6899a83ef8d87396 /examples/example-winmain/main.cpp
parentd61296044f760e9f502825ec253a61ce8675257a (diff)
Fix intermittent failure of slang-unit-test-tool/ReplayRecord (#6981)
* Fix intermittent failure of slang-unit-test-tool/ReplayRecord Three problems are addressed: 1. the graphics driver sometimes returns nullptr from GetShaderIdentifier 2. `findRecordFileName()` may not find any records at all. 3. the return value from cleanupRecordFiles() overwrote the error value in `res` and it returned SLANG_OK even when there were errors. * Fix compiler warnings on Windows
Diffstat (limited to 'examples/example-winmain/main.cpp')
-rw-r--r--examples/example-winmain/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example-winmain/main.cpp b/examples/example-winmain/main.cpp
index 8094e7fc4..a64328105 100644
--- a/examples/example-winmain/main.cpp
+++ b/examples/example-winmain/main.cpp
@@ -1,3 +1,4 @@
+#define _CRT_SECURE_NO_WARNINGS
#include "../stacktrace-windows/common.h"
#include <stdio.h>