Skip to content

Commit

Permalink
[Minor] Disable compile warnings in torch: no hopes those to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 6, 2019
1 parent aa47bd0 commit c7f0830
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions contrib/lua-torch/nn/lib/THNN/CMakeLists.txt
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion contrib/lua-torch/torch7/CMakeLists.txt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion contrib/lua-torch/torch7/lib/TH/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit c7f0830

Please sign in to comment.