link boost when the boost variable is set

This commit is contained in:
Konstantin Käfer
2014-10-21 17:02:07 +02:00
parent b6a42afe7e
commit 3a39d69504
4 changed files with 5 additions and 7 deletions

2
configure vendored
View File

@@ -81,7 +81,7 @@ CONFIG="# Do not edit. Generated by the configure script.
'python': '${PYTHON}',
"
if [ ! -z ${LIBCURL_VERSION} ]; then
if [ ! -z ${BOOST_VERSION} ]; then
mason install boost ${BOOST_VERSION}
CONFIG+=" 'boost_root': '$(mason prefix boost ${BOOST_VERSION})',"$LN
fi

View File

@@ -5,6 +5,7 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-variable"
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wdeprecated-register"
#else

View File

@@ -5,8 +5,7 @@
extern "C" {
#endif
typedef struct uv_messenger_s uv_messenger_t;
#include <mbgl/util/uv-messenger.h>
#include <mbgl/util/uv-channel.h>
#include <stdlib.h>

View File

@@ -58,8 +58,7 @@ void FileRequestBaton::file_opened(uv_fs_t *req) {
uv_fs_close(req->loop, req, fd, file_closed);
} else {
ptr->fd = fd;
const int r = uv_fs_fstat(req->loop, req, fd, file_stated);
assert(r == 0);
uv_fs_fstat(req->loop, req, fd, file_stated);
}
}
}
@@ -135,8 +134,7 @@ void FileRequestBaton::file_read(uv_fs_t *req) {
}
void FileRequestBaton::file_closed(uv_fs_t *req) {
FileRequestBaton *ptr = (FileRequestBaton *)req->data;
assert(ptr->thread_id == uv_thread_self());
assert(((FileRequestBaton *)req->data)->thread_id == uv_thread_self());
if (req->result < 0) {
// Closing the file failed. But there isn't anything we can do.