File SPIRV-Tools-2022.3-init-_old_mode-fix.patch of Package mingw32-spirv-tools

diff -ur SPIRV-Tools-2022.3.orig/tools/io.h SPIRV-Tools-2022.3/tools/io.h
--- SPIRV-Tools-2022.3.orig/tools/io.h	2022-08-11 18:25:53.000000000 +0200
+++ SPIRV-Tools-2022.3/tools/io.h	2022-09-14 10:04:41.852261867 +0200
@@ -127,7 +127,7 @@
  public:
   // Opens |filename| in the given mode.  If |filename| is nullptr, the empty
   // string or "-", stdout will be set to the given mode.
-  OutputFile(const char* filename, const char* mode) {
+  OutputFile(const char* filename, const char* mode) : old_mode_(0) {
     const bool use_stdout =
         !filename || (filename[0] == '-' && filename[1] == '\0');
     if (use_stdout) {
openSUSE Build Service is sponsored by