13 lines
754 B
Diff
13 lines
754 B
Diff
|
diff -up SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp.dma ./SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp
|
||
|
--- SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp.dma 2022-02-16 08:20:38.927239298 +1000
|
||
|
+++ SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_target_env.cpp 2022-02-16 08:20:42.262301854 +1000
|
||
|
@@ -397,6 +397,8 @@ std::string spvLogStringForEnv(spv_targe
|
||
|
return "Unknown";
|
||
|
}
|
||
|
|
||
|
+// workaround gcc12/stdlibc++ -Wrestrict bug.
|
||
|
+#pragma GCC diagnostic ignored "-Wrestrict"
|
||
|
std::string spvTargetEnvList(const int pad, const int wrap) {
|
||
|
std::string ret;
|
||
|
size_t max_line_len = wrap - pad; // The first line isn't padded
|