From: Vsevolod Stakhov Date: Sat, 6 Apr 2019 11:38:02 +0000 (+0100) Subject: [Minor] Disable compile warnings in torch: no hopes those to be fixed X-Git-Tag: 1.9.2~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7f08302cb12ef693328d1ea6ef3f841cb8c3c98;p=rspamd.git [Minor] Disable compile warnings in torch: no hopes those to be fixed --- 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)