Skip to content

Commit

Permalink
build_system: fix Clang warning
Browse files Browse the repository at this point in the history
Clang and MSVC are not agreeing on this issue. MSVC complains about an
implicit capture while Clang says it's an unused lambda capture.
For now, we'll ignore the Clang warning.
  • Loading branch information
julianoes committed May 30, 2018
1 parent 071a462 commit 72f8b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ else()

set(warnings "${warnings} -Wlogical-op")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(warnings "${warnings} -Wno-missing-braces")
set(warnings "${warnings} -Wno-missing-braces -Wno-unused-lambda-capture")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
set(warnings "${warnings} -Wno-missing-braces -Wno-unused-parameter")
set(warnings "${warnings} -Wno-missing-braces -Wno-unused-parameter -Wno-unused-lambda-capture")
endif()

# Otherwise tinyxml2 complains.
Expand Down

0 comments on commit 72f8b1d

Please sign in to comment.