SWDEV-452538 - Cast functions directly to void *

This fix build errors in some builds

Change-Id: I1b8c9fa7186b60a20e8dfb86599c348455620c32


[ROCm/hip-tests commit: 26223a792b]
此提交包含在:
Alex Xie authored and AlexBin Xie committed 2024-05-06 09:21:17 -04:00
1 父節點 4036a8e388
當前提交 ab3a5bfeef
1 file changed
+4 -4
+4 -4
查看文件
@@ -312,19 +312,19 @@ TEST_CASE("Unit_hipCGGridGroupType_Basic") {
return;
}
void* (*kernel_func)(void);
void* kernel_func;
SECTION("Default grid group API test") {
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_grid_group_type);
kernel_func = reinterpret_cast<void*>(kernel_cg_grid_group_type);
}
#if HT_AMD
SECTION("Base type grid group API test") {
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_grid_group_type_via_base_type);
kernel_func = reinterpret_cast<void*>(kernel_cg_grid_group_type_via_base_type);
}
#endif
SECTION("Public API grid group test") {
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_grid_group_type_via_public_api);
kernel_func = reinterpret_cast<void*>(kernel_cg_grid_group_type_via_public_api);
}
// Test for block_size in powers of 2