]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Disable compile warnings in torch: no hopes those to be fixed
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Apr 2019 11:38:02 +0000 (12:38 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 6 Apr 2019 11:38:02 +0000 (12:38 +0100)
contrib/lua-torch/nn/lib/THNN/CMakeLists.txt
contrib/lua-torch/torch7/CMakeLists.txt
contrib/lua-torch/torch7/lib/TH/CMakeLists.txt

index 00908a5b12f9348177bdc32d21d66f55329ea686..57f9e2e193a639371d903536550008a4122f7ba7 100644 (file)
@@ -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)
index 1c3995dbeb22c5e50f349b51d32356fbd920f5f6..cb73f609609e7b9009a490c5cf63644b3f5dbb2a 100644 (file)
@@ -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)
index 397ae27a7384ae5a7908dec2411e386a57c543fd..f7e0bf9bb329dcea438f14abd86748adf244b659 100644 (file)
@@ -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)