summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-06 12:38:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-06 12:38:02 +0100
commitc7f08302cb12ef693328d1ea6ef3f841cb8c3c98 (patch)
treefe64e4b0dd77e2708ecb3764e370cc7ef9dfc7e4 /contrib
parentaa47bd08154dd05c9e0c4d40c31c8488560885e7 (diff)
downloadrspamd-c7f08302cb12ef693328d1ea6ef3f841cb8c3c98.tar.gz
rspamd-c7f08302cb12ef693328d1ea6ef3f841cb8c3c98.zip
[Minor] Disable compile warnings in torch: no hopes those to be fixed
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lua-torch/nn/lib/THNN/CMakeLists.txt2
-rw-r--r--contrib/lua-torch/torch7/CMakeLists.txt1
-rw-r--r--contrib/lua-torch/torch7/lib/TH/CMakeLists.txt2
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)