From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0951D29E80 for ; Tue, 14 May 2019 16:58:18 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O6Qq-DEbGba0 for ; Tue, 14 May 2019 16:58:17 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 637A329CF1 for ; Tue, 14 May 2019 16:58:17 -0400 (EDT) From: Alexander Turenko Subject: [tarantool-patches] [PATCH] Suppress -Warray-bounds warning on unit/guard.cc Date: Tue, 14 May 2019 23:57:30 +0300 Message-Id: <7850a6f2591b178284295d2c9a3418cdf544fa0d.1557867303.git.alexander.turenko@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: Kirill Yukhin Cc: Alexander Turenko , tarantool-patches@freelists.org 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