vcpkg/ports/libtorch/fix_werror.patch
jim wang b79745ebf3
[libtorch] Fix function not having a default return value (#31096)
* fix -werror=return-type

* update version
2023-04-25 22:47:28 -07:00

13 lines
540 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e46275..b505ec5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -788,7 +788,6 @@ if(NOT MSVC)
# 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")