Skip to content

Commit

Permalink
fix(sdk): Silence boost warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisklein committed Jul 7, 2021
1 parent 09d2574 commit e2de214
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
4 changes: 3 additions & 1 deletion fairmq/JSONParser.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014-2018 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -19,7 +19,9 @@

#include <fairlogger/Logger.h>

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/property_tree/json_parser.hpp>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/property_tree/ptree.hpp>
#include <boost/any.hpp>

Expand Down
4 changes: 3 additions & 1 deletion fairmq/plugins/DDS/DDS.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2017-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -14,7 +14,9 @@
#include <fairmq/Version.h>
#include <fairmq/sdk/commands/Commands.h>

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS

#include <boost/asio/executor.hpp>
#include <boost/asio/executor_work_guard.hpp>
Expand Down
2 changes: 2 additions & 0 deletions fairmq/sdk/DDSEnvironment.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include "DDSEnvironment.h"

#include <cstdlib>
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <fairlogger/Logger.h>
#include <fairmq/tools/InstanceLimit.h>
#include <fairmq/sdk/DDSInfo.h>
Expand Down
6 changes: 4 additions & 2 deletions fairmq/sdk/DDSSession.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
#include <boost/uuid/uuid_io.hpp>
#include <cassert>
#include <cstdlib>
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <fairlogger/Logger.h>
#include <fairmq/tools/Strings.h>
#include <fairmq/tools/Semaphore.h>
#include <fairmq/sdk/DDSAgent.h>
#include <fairmq/sdk/DDSEnvironment.h>
#include <fairmq/sdk/DDSTopology.h>
#include <fairmq/tools/Semaphore.h>
#include <fairmq/tools/Strings.h>
#include <mutex>
#include <sstream>
#include <thread>
Expand Down
2 changes: 2 additions & 0 deletions fairmq/sdk/DDSTopology.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#include "DDSTopology.h"

#include <boost/range/iterator_range.hpp>
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <fairlogger/Logger.h>
#include <fairmq/sdk/DDSEnvironment.h>
#include <memory>
Expand Down
4 changes: 3 additions & 1 deletion fairmq/sdk/Topology.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2019-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -8,7 +8,9 @@

#include "Topology.h"

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS

namespace fair::mq::sdk
{
Expand Down
2 changes: 2 additions & 0 deletions test/sdk/_dds.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

#include "Fixtures.h"

#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS

namespace {

Expand Down
4 changes: 3 additions & 1 deletion test/sdk/_topology.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2019-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence (LGPL) version 3, *
Expand All @@ -9,7 +9,9 @@
#include "Fixtures.h"

#include <asio.hpp>
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <dds/dds.h>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <fairmq/sdk/Topology.h>
#include <fairmq/tools/Strings.h>
#include <fairmq/tools/Semaphore.h>
Expand Down

0 comments on commit e2de214

Please sign in to comment.