Accepting request 961605 from home:marxin:branches:devel:tools
- Add gcc12-disable-Werror=maybe-uninitialized.patch in order to fix boo#1196587. OBS-URL: https://build.opensuse.org/request/show/961605 OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=41
This commit is contained in:
parent
d5aa753ce4
commit
644d69d03a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 14 08:41:35 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Add gcc12-disable-Werror=maybe-uninitialized.patch in order
|
||||||
|
to fix boo#1196587.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 17 11:58:46 UTC 2022 - Martin Pluskal <mpluskal@suse.com>
|
Mon Jan 17 11:58:46 UTC 2022 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ Summary: A microbenchmark support library
|
|||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/google/benchmark
|
URL: https://github.com/google/benchmark
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
Patch0: gcc12-disable-Werror=maybe-uninitialized.patch
|
||||||
BuildRequires: cmake >= 3.5.1
|
BuildRequires: cmake >= 3.5.1
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
|
12
gcc12-disable-Werror=maybe-uninitialized.patch
Normal file
12
gcc12-disable-Werror=maybe-uninitialized.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index b8852e4..4363fa1 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -238,6 +238,7 @@ else()
|
||||||
|
if (BENCHMARK_ENABLE_LTO)
|
||||||
|
add_cxx_compiler_flag(-flto)
|
||||||
|
add_cxx_compiler_flag(-Wno-lto-type-mismatch)
|
||||||
|
+ add_cxx_compiler_flag(-Wno-error=maybe-uninitialized)
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
|
find_program(GCC_AR gcc-ar)
|
||||||
|
if (GCC_AR)
|
Loading…
x
Reference in New Issue
Block a user