Jan Engelhardt
40a5b2e8c2
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-tools?expand=0&rev=59
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2021-02-10 11:35:55.577457480 +0100
|
|
|
|
gcc-11 is just too picky.
|
|
Unrelatedly, -Werror is stupid for distributions.
|
|
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
source/diagnostic.cpp | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: SPIRV-Tools-2020.6/CMakeLists.txt
|
|
===================================================================
|
|
--- SPIRV-Tools-2020.6.orig/CMakeLists.txt
|
|
+++ SPIRV-Tools-2020.6/CMakeLists.txt
|
|
@@ -106,7 +106,7 @@ if(${COMPILER_IS_LIKE_GNU})
|
|
endif()
|
|
|
|
if(${SPIRV_WERROR})
|
|
- set(SPIRV_WARNINGS ${SPIRV_WARNINGS} -Werror)
|
|
+ set(SPIRV_WARNINGS ${SPIRV_WARNINGS})
|
|
endif()
|
|
elseif(MSVC)
|
|
set(SPIRV_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS /wd4800)
|
|
Index: SPIRV-Tools-2020.6/source/diagnostic.cpp
|
|
===================================================================
|
|
--- SPIRV-Tools-2020.6.orig/source/diagnostic.cpp
|
|
+++ SPIRV-Tools-2020.6/source/diagnostic.cpp
|
|
@@ -37,7 +37,7 @@ spv_diagnostic spvDiagnosticCreate(const
|
|
diagnostic->position = *position;
|
|
diagnostic->isTextSource = false;
|
|
memset(diagnostic->error, 0, length);
|
|
- strncpy(diagnostic->error, message, length);
|
|
+ strcpy(diagnostic->error, message);
|
|
return diagnostic;
|
|
}
|
|
|