commit c7f0830: [Minor] Disable compile warnings in torch: no hopes those to be fixed

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Apr 6 11:42:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-06 12:38:02 +0100
URL: https://github.com/rspamd/rspamd/commit/c7f08302cb12ef693328d1ea6ef3f841cb8c3c98

[Minor] Disable compile warnings in torch: no hopes those to be fixed

---
 contrib/lua-torch/nn/lib/THNN/CMakeLists.txt   | 2 ++
 contrib/lua-torch/torch7/CMakeLists.txt        | 1 -
 contrib/lua-torch/torch7/lib/TH/CMakeLists.txt | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/contrib/lua-torch/nn/lib/THNN/CMakeLists.txt b/contrib/lua-torch/nn/lib/THNN/CMakeLists.txt
index 00908a5b1..57f9e2e19 100644
--- a/contrib/lua-torch/nn/lib/THNN/CMakeLists.txt
+++ b/contrib/lua-torch/nn/lib/THNN/CMakeLists.txt
@@ -25,6 +25,8 @@ ELSE ()
   SET(CMAKE_C_STANDARD 99)
 ENDIF ()
 
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
+
 IF (WITH_OPENMP)
   FIND_PACKAGE(OpenMP)
   IF(OPENMP_FOUND)
diff --git a/contrib/lua-torch/torch7/CMakeLists.txt b/contrib/lua-torch/torch7/CMakeLists.txt
index 1c3995dbe..cb73f6096 100644
--- a/contrib/lua-torch/torch7/CMakeLists.txt
+++ b/contrib/lua-torch/torch7/CMakeLists.txt
@@ -7,7 +7,6 @@ IF (NOT MSVC)
     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=implicit-function-declaration -Werror=format")
   ENDIF(MINGW)
 ENDIF(NOT MSVC)
-
 IF (WITH_OPENMP)
   FIND_PACKAGE(OpenMP)
   IF(OPENMP_FOUND)
diff --git a/contrib/lua-torch/torch7/lib/TH/CMakeLists.txt b/contrib/lua-torch/torch7/lib/TH/CMakeLists.txt
index 397ae27a7..f7e0bf9bb 100644
--- a/contrib/lua-torch/torch7/lib/TH/CMakeLists.txt
+++ b/contrib/lua-torch/torch7/lib/TH/CMakeLists.txt
@@ -21,7 +21,7 @@ ENDIF(MSVC)
 IF(MSVC)
   ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE=1)  # respect the standard
 ENDIF(MSVC)
-
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
 IF(UNIX)
   # prevent Unknown CMake command "check_function_exists".
   INCLUDE(CheckFunctionExists)


More information about the Commits mailing list