Skip to content

Commit

Permalink
Fixed shadowing warning in OSX's boost version
Browse files Browse the repository at this point in the history
  • Loading branch information
ereOn committed Dec 26, 2018
1 parent a55b165 commit b573afd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions libs/fscp/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,16 @@
#include "session_message.hpp"
#include "data_message.hpp"

// Mac OSX version of Boost has shadowing warnings that fail the build.
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wshadow"
#endif
#include <boost/random.hpp>
#ifdef __clang__
#pragma clang diagnostic pop
#endif

#include <boost/make_shared.hpp>
#include <boost/ref.hpp>
#include <boost/thread/future.hpp>
Expand Down

0 comments on commit b573afd

Please sign in to comment.