From 9cf29ac9ba559627703e2549d8f98e9648805a33 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 16 Feb 2022 08:28:53 +1000 Subject: [PATCH] fix the fix. --- fix-gcc12-build.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix-gcc12-build.patch b/fix-gcc12-build.patch index d052565..4ceeeef 100644 --- a/fix-gcc12-build.patch +++ b/fix-gcc12-build.patch @@ -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