fix the fix.

This commit is contained in:
Dave Airlie 2022-02-16 08:28:53 +10:00
parent 305b6e1a07
commit 9cf29ac9ba

View File

@ -6,7 +6,7 @@ diff -up SPIRV-Tools-45dd184c790d6bfc78a5a74a10c37e888b1823fa/source/spirv_targe
}
+// workaround gcc12/stdlibc++ -Wrestrict bug.
+#pragma GCC diagnostic ignore "-Wrestrict"
+#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