From c9d97d5acf4a158c6129d72e491580c29b54322b Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sat, 28 Apr 2018 13:11:33 +0100 Subject: Fix compiler warnings for Sluift Test-Information: ./scons allow_warnings=0 Sluift now builds on latest macOS Change-Id: I7aca1c733dd86c772fc3a55f76d4915ad3c76e8d diff --git a/Sluift/SluiftClient.h b/Sluift/SluiftClient.h index a48c681..8cc815d 100644 --- a/Sluift/SluiftClient.h +++ b/Sluift/SluiftClient.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017 Isode Limited. + * Copyright (c) 2013-2018 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -110,7 +110,7 @@ namespace Swift { void disconnect(); void setSoftwareVersion(const std::string& name, const std::string& version, const std::string& os); boost::optional getNextEvent(int timeout, - boost::function condition = 0); + boost::function condition = boost::function()); std::vector getRoster(int timeout); std::vector getBlockList(int timeout); diff --git a/Sluift/SluiftComponent.h b/Sluift/SluiftComponent.h index d45c3b2..9fc7101 100644 --- a/Sluift/SluiftComponent.h +++ b/Sluift/SluiftComponent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2016 Isode Limited. + * Copyright (c) 2014-2018 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -85,7 +85,7 @@ namespace Swift { void disconnect(); void setSoftwareVersion(const std::string& name, const std::string& version, const std::string& os); boost::optional getNextEvent(int timeout, - boost::function condition = 0); + boost::function condition = boost::function()); private: Sluift::Response doSendRequest(std::shared_ptr request, int timeout); -- cgit v0.10.2-6-g49f6