From 3cc7e86420e4b3d67c5882d8d68e1e6a003c6154 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Thu, 29 Oct 2015 20:28:27 +0100
Subject: Fix code in response to clang compiler warnings

Test-Information:

Code builds without warnings, unit tests still pass on OS X
10.10.5.

Change-Id: I9108b53fb00b0fc85a8dd4e2a347e21d0e6008ab

diff --git a/Swiften/QA/FileTransferTest/FileTransferTest.cpp b/Swiften/QA/FileTransferTest/FileTransferTest.cpp
index 8faf8a9..2dcaeb8 100644
--- a/Swiften/QA/FileTransferTest/FileTransferTest.cpp
+++ b/Swiften/QA/FileTransferTest/FileTransferTest.cpp
@@ -85,7 +85,7 @@ class FileTransferTest {
 			}
 
 			std::ofstream outfile(sendFilePath_.native().c_str(), std::ios::out | std::ios::binary);
-			outfile.write(reinterpret_cast<char *>(&sendData_[0]), sendData_.size());
+			outfile.write(reinterpret_cast<char *>(&sendData_[0]), boost::numeric_cast<ptrdiff_t>(sendData_.size()));
 			outfile.close();
 		}
 
@@ -261,7 +261,7 @@ class FileTransferTest {
 		Timer::ref timeOut_;
 };
 
-bool runTest(int senderCandidates, int receiverCandidates) {
+static bool runTest(int senderCandidates, int receiverCandidates) {
 	bool success = false;
 
 	std::cout << "senderCandidates: " << senderCandidates << ", receiverCandidates: " << receiverCandidates << std::endl;
-- 
cgit v0.10.2-6-g49f6