Skip to content

Commit 09bfde1

Browse files
committed
remove warning
1 parent 49f9aa7 commit 09bfde1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/runtime/CUDA/registration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ void *RTDECL(CUFRegisterModule)(void *data) {
2424
}
2525

2626
void RTDEF(CUFRegisterFunction)(void **module, const char *fct) {
27-
__cudaRegisterFunction(module, fct, (char *)fct, fct, -1, (uint3 *)0,
28-
(uint3 *)0, (dim3 *)0, (dim3 *)0, (int *)0);
27+
__cudaRegisterFunction(module, fct, const_cast<char *>(fct), fct, -1,
28+
(uint3 *)0, (uint3 *)0, (dim3 *)0, (dim3 *)0, (int *)0);
2929
}
3030
}
3131
} // namespace Fortran::runtime::cuda

0 commit comments

Comments
 (0)