Skip to content

Commit 6f35613

Browse files
author
Mei, Yijie
committed
Add no-unused-but-set-parameter to skip verbose warning
1 parent 82ab75b commit 6f35613

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ include_directories(${PROJECT_BINARY_DIR}/include)
4141

4242
add_definitions(${LLVM_DEFINITIONS})
4343

44+
if(NOT MSVC)
45+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-but-set-parameter")
46+
endif()
4447
add_subdirectory(include)
4548
add_subdirectory(lib)
4649
add_subdirectory(src)

0 commit comments

Comments
 (0)