File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cd ../..
2020echo " Building SPIRV-Tools."
2121mkdir -p external/spirv-tools-build
2222cd external/spirv-tools-build
23- cmake ../spirv-tools -DCMAKE_BUILD_TYPE=$PROFILE -G" Unix Makefiles"
23+ cmake ../spirv-tools -DCMAKE_BUILD_TYPE=$PROFILE -G" Unix Makefiles" -DSPIRV_WERROR=OFF
2424make -j$NPROC
2525cd ../..
2626
Original file line number Diff line number Diff line change @@ -867,6 +867,7 @@ struct SPIRConstant : IVariant
867867 // Workaround for MSVC 2013, initializing an array breaks.
868868 ConstantVector ()
869869 {
870+ memset (r, 0 , sizeof (r));
870871 for (unsigned i = 0 ; i < 4 ; i++)
871872 id[i] = 0 ;
872873 }
@@ -1005,7 +1006,7 @@ struct SPIRConstant : IVariant
10051006
10061007 inline void make_null (const SPIRType &constant_type_)
10071008 {
1008- std::memset (&m, 0 , sizeof (m)) ;
1009+ m = {} ;
10091010 m.columns = constant_type_.columns ;
10101011 for (auto &c : m.c )
10111012 c.vecsize = constant_type_.vecsize ;
You can’t perform that action at this time.
0 commit comments