Skip to content

Commit

Permalink
core: protect clang pragma with ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed May 25, 2018
1 parent 57b45f5 commit fadcfb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/thread_pool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ TEST(ThreadPool, SimpleTaskWithArgs)
// We need to capture first because otherwise MSVC complains about
// an implicit capture. However, this makes clang sad, so we have to
// ignore its warning.
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-lambda-capture"
#endif

TEST(ThreadPool, LambdaWithArgs)
{
Expand Down

0 comments on commit fadcfb4

Please sign in to comment.