From 3ced13afe797870834deb5eb99cd12ca9935a2cf Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 15 Aug 2024 21:50:00 +0200 Subject: [PATCH] build: suppress error until this is fixed upstream --- cmake/folly.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/folly.cmake b/cmake/folly.cmake index dd346a9a0..5688c3bf0 100644 --- a/cmake/folly.cmake +++ b/cmake/folly.cmake @@ -89,6 +89,14 @@ add_library(dwarfs_folly_lite OBJECT ${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/system/ThreadName.cpp ) +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + # silence warning until this is fixed upstream + set_source_files_properties( + ${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/net/NetOps.cpp + PROPERTIES COMPILE_FLAGS "-Wno-address" + ) +endif() + if(WIN32) target_sources(dwarfs_folly_lite PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/folly/folly/net/detail/SocketFileDescriptorMap.cpp