diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2022-12-23 12:05:52 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2022-12-23 12:06:42 +0100 |
commit | 4e35b1fd5cf76fe594ebc10a3a3d0e874cb78e75 (patch) | |
tree | 2f928b93b937822e5fbac636ca393803e2c21f99 /sci-libs | |
parent | net-im/signal-cli-bin: add 0.11.5.1 (diff) | |
download | gentoo-4e35b1fd5cf76fe594ebc10a3a3d0e874cb78e75.tar.gz gentoo-4e35b1fd5cf76fe594ebc10a3a3d0e874cb78e75.tar.bz2 gentoo-4e35b1fd5cf76fe594ebc10a3a3d0e874cb78e75.zip |
sci-libs/caffe2: remove -Werror
Closes: https://bugs.gentoo.org/886441
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/caffe2/files/caffe2-1.11.0-gentoo.patch | 22 |
1 files changed, 21 insertions, 1 deletions
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 @@ |