From 8987be30017923026a25bb2b5a12371c9016542b Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 26 Dec 2009 11:16:21 +0000 Subject: [PATCH] * Fixed some minor compiler warnings/errors. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1119 e378c898-3ddf-0310-93e7-cc216c733640 --- rak/allocators.h | 3 ++- src/thread_base.cc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rak/allocators.h b/rak/allocators.h index 7d943615..4de98102 100644 --- a/rak/allocators.h +++ b/rak/allocators.h @@ -77,7 +77,8 @@ public: static pointer alloc_size(size_type size) { pointer ptr = NULL; - posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size); + int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size); + return ptr; } diff --git a/src/thread_base.cc b/src/thread_base.cc index 8365b168..c3252d2e 100644 --- a/src/thread_base.cc +++ b/src/thread_base.cc @@ -40,6 +40,7 @@ #include #include +#include #include #include