Skip to content

Commit 6f22e6c

Browse files
authored
Merge pull request #5704 from luotao1/openblas
fix a lot of warnings -Wunused-but-set-variable and Wunused-variable when compile openBlas
2 parents 186581d + 49ac048 commit 6f22e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/external/openblas.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ IF(NOT ${CBLAS_FOUND})
2929
"${CBLAS_INSTALL_DIR}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}openblas${CMAKE_STATIC_LIBRARY_SUFFIX}"
3030
CACHE FILEPATH "openblas library." FORCE)
3131

32-
SET(OPENBLAS_CC "${CMAKE_C_COMPILER}")
32+
SET(OPENBLAS_CC "${CMAKE_C_COMPILER} -Wno-unused-but-set-variable -Wno-unused-variable")
3333

3434
IF(CMAKE_CROSSCOMPILING)
3535
SET(OPTIONAL_ARGS HOSTCC=${HOST_C_COMPILER})

0 commit comments

Comments
 (0)