diff --git a/CMake/resolve_dependency_modules/folly/CMakeLists.txt b/CMake/resolve_dependency_modules/folly/CMakeLists.txt index b8c779ae00da0..0377c2f30a71d 100644 --- a/CMake/resolve_dependency_modules/folly/CMakeLists.txt +++ b/CMake/resolve_dependency_modules/folly/CMakeLists.txt @@ -29,6 +29,8 @@ if(gflags_SOURCE STREQUAL "BUNDLED") set(glog_patch && git apply ${CMAKE_CURRENT_LIST_DIR}/folly-gflags-glog.patch) endif() +set(openssl_patch && git apply ${CMAKE_CURRENT_LIST_DIR}/folly-hmac-warning.patch) + FetchContent_Declare( folly URL ${VELOX_FOLLY_SOURCE_URL} diff --git a/CMake/resolve_dependency_modules/folly/folly-hmac-warning.patch b/CMake/resolve_dependency_modules/folly/folly-hmac-warning.patch new file mode 100644 index 0000000000000..0b4ab7f11fac6 --- /dev/null +++ b/CMake/resolve_dependency_modules/folly/folly-hmac-warning.patch @@ -0,0 +1,19 @@ +diff --git a/folly/Memory.h b/folly/Memory.h +index 9ae546cb0..1c2af76fb 100644 +--- a/folly/Memory.h ++++ b/folly/Memory.h +@@ -284,11 +284,13 @@ make_unique(Args&&...) = delete; + * buf = nullptr; // calls BIO_free(buf.get()) + */ + ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + template + struct static_function_deleter { + void operator()(T* t) const { f(t); } + }; +- ++#pragma GCC diagnostic pop + /** + * to_shared_ptr + *