Skip to content

Commit

Permalink
Fix Homebrew warning (backport from Fortress) (#268) (#270)
Browse files Browse the repository at this point in the history
Port forward fix Homebrew warning

Signed-off-by: Carlos Agüero <[email protected]>
  • Loading branch information
Blast545 authored Oct 4, 2021
1 parent 9cd1e2d commit 8d1b2ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Discovery.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ inline namespace IGNITION_TRANSPORT_VERSION_NAMESPACE

try
{
zmq::poll(&items[0], sizeof(items) / sizeof(items[0]), _timeout);
zmq::poll(&items[0], sizeof(items) / sizeof(items[0]),
std::chrono::milliseconds(_timeout));
}
catch(...)
{
Expand Down
4 changes: 2 additions & 2 deletions src/NodeShared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void NodeShared::RunReceptionTask()
try
{
zmq::poll(&items[0], sizeof(items) / sizeof(items[0]),
NodeSharedPrivate::Timeout);
std::chrono::milliseconds(NodeSharedPrivate::Timeout));
}
catch(...)
{
Expand Down Expand Up @@ -1677,7 +1677,7 @@ void NodeSharedPrivate::AccessControlHandler()
try
{
zmq::poll(&items[0], sizeof(items) / sizeof(items[0]),
NodeSharedPrivate::Timeout);
std::chrono::milliseconds(NodeSharedPrivate::Timeout));
}
catch(...)
{
Expand Down
2 changes: 1 addition & 1 deletion src/NodeSharedPrivate.hh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ namespace ignition
public: std::atomic<bool> exit = false;

/// \brief Timeout used for receiving messages (ms.).
public: static const int Timeout = 250;
public: inline static const int Timeout = 250;

////////////////////////////////////////////////////////////////
/////// The following is for asynchronous publication of ///////
Expand Down

0 comments on commit 8d1b2ce

Please sign in to comment.