You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ks...@apache.org on 2019/05/20 15:02:37 UTC
[arrow] branch master updated: ARROW-5376: [C++] Workaround for gcc
5.4.0 bug
This is an automated email from the ASF dual-hosted git repository.
kszucs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new c154825 ARROW-5376: [C++] Workaround for gcc 5.4.0 bug
c154825 is described below
commit c154825ad903a8872513330957a826a07e9ae870
Author: Antoine Pitrou <an...@python.org>
AuthorDate: Mon May 20 17:02:16 2019 +0200
ARROW-5376: [C++] Workaround for gcc 5.4.0 bug
Author: Antoine Pitrou <an...@python.org>
Closes #4351 from pitrou/ARROW-5376-gcc-warning and squashes the following commits:
21b47b168 <Antoine Pitrou> ARROW-5376: Workaround for gcc 5.4.0 bug
---
cpp/cmake_modules/SetupCxxFlags.cmake | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cpp/cmake_modules/SetupCxxFlags.cmake b/cpp/cmake_modules/SetupCxxFlags.cmake
index 8cb2585..97d6383 100644
--- a/cpp/cmake_modules/SetupCxxFlags.cmake
+++ b/cpp/cmake_modules/SetupCxxFlags.cmake
@@ -229,6 +229,11 @@ if("${COMPILER_FAMILY}" STREQUAL "gcc")
# Add colors when paired with ninja
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=always")
endif()
+
+ if("${COMPILER_VERSION}" VERSION_LESS "6.0")
+ # Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43407
+ set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} -Wno-attributes")
+ endif()
endif()
# Clang options for all builds