Skip to content

Commit b239306

Browse files
committed
[software] Fix warnings
1 parent 2fbe8eb commit b239306

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

software/runtime/kmp/entrypoints.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ int __kmpc_dispatch_next_8u(ident_t * /*loc*/, kmp_int64 /*gtid*/,
134134

135135
void __kmpc_push_num_threads(ident_t * /*loc*/, kmp_int32 /*global_tid*/,
136136
kmp_int32 num_threads) {
137-
kmp::runtime::getCurrentThread().requestNumThreads(num_threads);
137+
kmp::runtime::getCurrentThread().requestNumThreads(
138+
static_cast<kmp_uint32>(num_threads));
138139
};
139140

140141
// Critical sections
@@ -220,7 +221,7 @@ void __kmpc_fork_teams(ident_t * /*loc*/, kmp_int32 argc, kmpc_micro microtask,
220221
// cppcoreguidelines-pro-type-reinterpret-cast)
221222
}
222223

223-
void __kmpc_push_num_teams(ident_t * /*loc*/, kmp_int32 global_tid,
224+
void __kmpc_push_num_teams(ident_t * /*loc*/, kmp_int32 /*global_tid*/,
224225
kmp_int32 num_teams, kmp_int32 num_threads) {
225226
DEBUG_PRINT("num_teams: %d, num_threads: %d\n", num_teams, num_threads);
226227
if (num_teams > 0) {

0 commit comments

Comments
 (0)