Commit b3be3691 by Marcus Winter

mtapi_c, mtapi_network_c, mtapi_opencl_c: removed compiler warnings

parent 92301c6e
......@@ -218,11 +218,11 @@ void TaskTest::TestBasic() {
mtapi_taskattr_init(&task_attr, &status);
MTAPI_CHECK_STATUS(status);
const int kTaskInstances = 5;
const mtapi_uint_t kTaskInstances = 5;
status = MTAPI_ERR_UNKNOWN;
mtapi_taskattr_set(&task_attr, MTAPI_TASK_INSTANCES,
MTAPI_ATTRIBUTE_VALUE(kTaskInstances), MTAPI_ATTRIBUTE_POINTER_AS_VALUE,
&kTaskInstances, sizeof(mtapi_uint_t),
&status);
MTAPI_CHECK_STATUS(status);
......
......@@ -288,7 +288,7 @@ static int embb_mtapi_network_thread(void * args) {
mtapi_taskattr_set(&task_attr, MTAPI_TASK_DETACHED,
(void*)&task_detached, sizeof(mtapi_boolean_t), &local_status);
mtapi_taskattr_set(&task_attr, MTAPI_TASK_PRIORITY,
(void*)priority, 0, &local_status);
(void*)&priority, sizeof(int32_t), &local_status);
assert(local_status == MTAPI_SUCCESS);
memcpy(&func_void, &func, sizeof(void*));
mtapi_taskattr_set(&task_attr, MTAPI_TASK_COMPLETE_FUNCTION,
......
......@@ -161,9 +161,9 @@ int embb_mtapi_network_socket_select(
}
if (timeout >= 0) {
err = select(max_fd.handle + 1, &read_set, NULL, NULL, &tv);
err = select((int)max_fd.handle + 1, &read_set, NULL, NULL, &tv);
} else {
err = select(max_fd.handle + 1, &read_set, NULL, NULL, NULL);
err = select((int)max_fd.handle + 1, &read_set, NULL, NULL, NULL);
}
if (0 == err) {
// timeout
......
......@@ -37,7 +37,11 @@ extern "C" {
struct embb_mtapi_network_socket_struct {
#ifdef _WIN32
unsigned int handle;
# ifdef _WIN64
uint64_t handle;
# else
uint32_t handle;
# endif
#else
int handle;
#endif
......
......@@ -153,7 +153,7 @@ static void opencl_task_start(
if (0 == elements)
elements = 1;
global_work_size =
round_up((int)opencl_action->local_work_size, elements);
round_up((int)opencl_action->local_work_size, (int)elements);
opencl_task->task = task;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment