Skip to content

Commit 8588665

Browse files
committed
build: ignore unused-function warning/error
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
1 parent 7acfe6f commit 8588665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/HandleLLVMOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ if( MSVC )
390390
append("-Wmissing-field-initializers" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
391391

392392
# enable warnings explicitly.
393-
append("-Wnonportable-include-path -Wunused-function" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
393+
append("-Wnonportable-include-path -Wno-unused-function" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
394394
append("-Wtrigraphs -Wconstant-logical-operand -Wunused-variable" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
395395
endif (CLANG_CL)
396396
endif (LLVM_ENABLE_WARNINGS)

0 commit comments

Comments
 (0)