Skip to content

Commit f547820

Browse files
committed
Fix warning: passing argument discards ‘const’ qualifier from pointer
Fix warning: warning: passing argument 4 of ‘cuda_copy’ discards ‘const’ qualifier \ from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Lukasz Dorau <[email protected]>
1 parent b5c0512 commit f547820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/providers/ipc_cuda_prov_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void memcopy(void *dst, const void *src, size_t size, void *context) {
1616
cuda_memory_provider_params_t *cu_params =
1717
(cuda_memory_provider_params_t *)context;
1818
int ret = cuda_copy(cu_params->cuda_context_handle,
19-
cu_params->cuda_device_handle, dst, src, size);
19+
cu_params->cuda_device_handle, dst, (void *)src, size);
2020
if (ret != 0) {
2121
fprintf(stderr, "cuda_copy failed with error %d\n", ret);
2222
}

0 commit comments

Comments
 (0)