[tarantool-patches] [PATCH] Suppress -Warray-bounds warning on unit/guard.cc
Alexander Turenko
alexander.turenko at tarantool.org
Tue May 14 23:57:30 MSK 2019
This warning breaks -Werror -O2 build on GCC 9.1.
---
no issue
https://github.com/tarantool/tarantool/tree/Totktonada/fix-gcc-9-warnings
test/unit/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt
index 07dcd6cf2..2f670033c 100644
--- a/test/unit/CMakeLists.txt
+++ b/test/unit/CMakeLists.txt
@@ -77,6 +77,9 @@ if (NOT ENABLE_GCOV)
# This test is known to be broken with GCOV
add_executable(guard.test guard.cc)
target_link_libraries(guard.test core unit)
+ set_source_files_properties(
+ guard.cc
+ PROPERTIES COMPILE_FLAGS -Wno-array-bounds)
endif ()
add_executable(fiber_stress.test fiber_stress.cc)
--
2.21.0
More information about the Tarantool-patches
mailing list