From b573afd39ea76f0b52083a47e4d3047c3c7330b9 Mon Sep 17 00:00:00 2001 From: Julien Kauffmann Date: Wed, 26 Dec 2018 12:20:28 +0100 Subject: [PATCH] Fixed shadowing warning in OSX's boost version --- libs/fscp/src/server.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/fscp/src/server.cpp b/libs/fscp/src/server.cpp index 36924143..622ce4c3 100644 --- a/libs/fscp/src/server.cpp +++ b/libs/fscp/src/server.cpp @@ -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 +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #include #include #include