back out gcc11.diff
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/spirv-tools?expand=0&rev=63
This commit is contained in:
parent
68047c1965
commit
c4f1942669
37
gcc11.diff
37
gcc11.diff
@ -1,37 +0,0 @@
|
||||
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;
|
||||
}
|
||||
|
@ -7,11 +7,6 @@ Mon Mar 1 06:56:04 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||
* Validator: add Vulkan EXT builtins
|
||||
* Optimizer: Run DCE when SPV_KHR_shader_clock is used
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 10 10:37:23 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Add gcc11.diff [boo#1181882]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 8 12:30:46 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -31,7 +31,6 @@ Source: https://github.com/KhronosGroup/SPIRV-Tools/archive/v%version.ta
|
||||
Source9: baselibs.conf
|
||||
Patch1: ver.diff
|
||||
Patch2: gcc48.diff
|
||||
Patch3: gcc11.diff
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
BuildRequires: gcc-c++
|
||||
|
Loading…
Reference in New Issue
Block a user