Skip to content

Commit 28ea088

Browse files
dicejmikelle-rogers
authored andcommitted
Fix warnings in coreclr/jit/compiler.cpp for non-Windows targets (dotnet#109830)
This change was extracted from dotnet/runtimelab#2614, which includes various fixes to enable building on non-Windows systems. We're in the process of upstreaming the parts of that PR which are not specific to NativeAOT-LLVM, and this is the latest such change.
1 parent 632f266 commit 28ea088

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coreclr/jit/compiler.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ void DisplayNowayAssertMap()
14471447

14481448
for (i = 0; i < count; i++)
14491449
{
1450-
fprintf(fout, "%u, %s, %u, \"%s\"\n", nacp[i].count, nacp[i].fl.m_file, nacp[i].fl.m_line,
1450+
fprintf(fout, "%zu, %s, %u, \"%s\"\n", nacp[i].count, nacp[i].fl.m_file, nacp[i].fl.m_line,
14511451
nacp[i].fl.m_condStr);
14521452
}
14531453

@@ -3305,7 +3305,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
33053305
compMaxUncheckedOffsetForNullObject = (size_t)JitConfig.JitMaxUncheckedOffset();
33063306
if (verbose)
33073307
{
3308-
printf("STRESS_NULL_OBJECT_CHECK: compMaxUncheckedOffsetForNullObject=0x%X\n",
3308+
printf("STRESS_NULL_OBJECT_CHECK: compMaxUncheckedOffsetForNullObject=0x%zX\n",
33093309
compMaxUncheckedOffsetForNullObject);
33103310
}
33113311
}
@@ -9351,7 +9351,7 @@ void dumpConvertedVarSet(Compiler* comp, VARSET_VALARG_TP vars)
93519351

93529352
bool first = true;
93539353
printf("{");
9354-
for (size_t varNum = 0; varNum < comp->lvaCount; varNum++)
9354+
for (unsigned varNum = 0; varNum < comp->lvaCount; varNum++)
93559355
{
93569356
if (pVarNumSet[varNum] == 1)
93579357
{

0 commit comments

Comments
 (0)