Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] Suppress -Warray-bounds warning on unit/guard.cc
@ 2019-05-14 20:57 Alexander Turenko
  2019-05-15  2:31 ` [tarantool-patches] " Konstantin Osipov
  2019-05-29 15:06 ` Kirill Yukhin
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Turenko @ 2019-05-14 20:57 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: Alexander Turenko, tarantool-patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-29 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 20:57 [tarantool-patches] [PATCH] Suppress -Warray-bounds warning on unit/guard.cc Alexander Turenko
2019-05-15  2:31 ` [tarantool-patches] " Konstantin Osipov
2019-05-16 17:25   ` [tarantool-patches] " Alexander Turenko
2019-05-29 15:06 ` Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox