commit: 4e35b1fd5cf76fe594ebc10a3a3d0e874cb78e75 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Fri Dec 23 11:05:52 2022 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Fri Dec 23 11:06:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e35b1fd
sci-libs/caffe2: remove -Werror Closes: https://bugs.gentoo.org/886441 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch b/sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch index addf1eb0bfba..059bcc2b9705 100644 --- a/sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch +++ b/sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch @@ -49,7 +49,7 @@ set(TORCH_PYTHON_COMPILE_DEFINITIONS) --- a/CMakeLists.txt +++ b/CMakeLists.txt -@@ -750,7 +750,7 @@ +@@ -777,7 +777,7 @@ # ---[ Build flags if(NOT MSVC) @@ -58,6 +58,26 @@ string(APPEND CMAKE_CXX_FLAGS " -Wno-narrowing") # Eigen fails to build with some versions, so convert this to a warning # Details at http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1459 +@@ -783,7 +783,6 @@ + # Details at http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1459 + string(APPEND CMAKE_CXX_FLAGS " -Wall") + string(APPEND CMAKE_CXX_FLAGS " -Wextra") +- string(APPEND CMAKE_CXX_FLAGS " -Werror=return-type") + string(APPEND CMAKE_CXX_FLAGS " -Wno-missing-field-initializers") + string(APPEND CMAKE_CXX_FLAGS " -Wno-type-limits") + string(APPEND CMAKE_CXX_FLAGS " -Wno-array-bounds") +@@ -883,11 +882,9 @@ + string(APPEND CMAKE_CXX_FLAGS " -fno-trapping-math") + check_cxx_compiler_flag("-Werror=format" HAS_WERROR_FORMAT) + if(HAS_WERROR_FORMAT) +- string(APPEND CMAKE_CXX_FLAGS " -Werror=format") + endif() + check_cxx_compiler_flag("-Werror=cast-function-type" HAS_WERROR_CAST_FUNCTION_TYPE) + if(HAS_WERROR_CAST_FUNCTION_TYPE) +- string(APPEND CMAKE_CXX_FLAGS " -Werror=cast-function-type") + endif() + check_cxx_compiler_flag("-Werror=sign-compare" HAS_WERROR_SIGN_COMPARE) + # This doesn't work globally so we use the test on specific --- a/cmake/public/utils.cmake +++ b/cmake/public/utils.cmake @@ -512,8 +512,6 @@