Skip to content

Commit 4a94849

Browse files
committed
cuda: fix build warnings
1 parent ab1a76a commit 4a94849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CL/devices/cuda/pocl-cuda.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2090,6 +2090,7 @@ pocl_cuda_submit_kernel (CUstream stream, _cl_command_node *cmd,
20902090
}
20912091
case POCL_ARG_TYPE_IMAGE:
20922092
case POCL_ARG_TYPE_SAMPLER:
2093+
case POCL_ARG_TYPE_PIPE:
20932094
POCL_ABORT ("Unhandled argument type for CUDA\n");
20942095
break;
20952096
}
@@ -2375,8 +2376,7 @@ pocl_cuda_submit_node (_cl_command_node *node, cl_command_queue cq, int locked)
23752376
}
23762377
else
23772378
{
2378-
int i;
2379-
for (i = 0; i < cmd->svm_free.num_svm_pointers; i++)
2379+
for (unsigned int i = 0; i < cmd->svm_free.num_svm_pointers; i++)
23802380
{
23812381
void *ptr = cmd->svm_free.svm_pointers[i];
23822382
POCL_LOCK_OBJ (event->context);

0 commit comments

Comments
 (0)