SWDEV-452538 - Cast functions directly to void* instead of casting to function pointer
This change fixes build warning when compiled with -Wcast-function-type flag
Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com>
Change-Id: If60abf5c6855879a07375c166d7cb9ff6cd6fe5d
[ROCm/hip-tests commit: 109ffa0590]
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Rakesh Roy
γονέας
ac0795fe28
υποβολή
cde03b514c
@@ -480,20 +480,20 @@ TEST_CASE("Unit_hipCGMultiGridGroupType_Basic") {
|
||||
max_threads_per_blk = min(max_threads_per_blk, device_properties.maxThreadsPerBlock);
|
||||
}
|
||||
|
||||
void* (*kernel_func)(void);
|
||||
void* kernel_func;
|
||||
bool specific_api_test = false;
|
||||
|
||||
SECTION("Default multi grid group API test") {
|
||||
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_multi_grid_group_type);
|
||||
kernel_func = reinterpret_cast<void*>(kernel_cg_multi_grid_group_type);
|
||||
specific_api_test = true;
|
||||
}
|
||||
|
||||
SECTION("Base type multi grid group API test") {
|
||||
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_multi_grid_group_type_via_base_type);
|
||||
kernel_func = reinterpret_cast<void*>(kernel_cg_multi_grid_group_type_via_base_type);
|
||||
}
|
||||
|
||||
SECTION("Public API multi grid group test") {
|
||||
kernel_func = reinterpret_cast<void* (*)()>(kernel_cg_multi_grid_group_type_via_public_api);
|
||||
kernel_func = reinterpret_cast<void*>(kernel_cg_multi_grid_group_type_via_public_api);
|
||||
}
|
||||
|
||||
// Test for blockSizes in powers of 2
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user