Skip to content

Commit

Permalink
Fix warnings in coreclr/jit/compiler.cpp for non-Windows targets (dot…
Browse files Browse the repository at this point in the history
…net#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.
  • Loading branch information
dicej authored Nov 15, 2024
1 parent 5aee7c2 commit ad75a4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ void DisplayNowayAssertMap()

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

Expand Down Expand Up @@ -3305,7 +3305,7 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
compMaxUncheckedOffsetForNullObject = (size_t)JitConfig.JitMaxUncheckedOffset();
if (verbose)
{
printf("STRESS_NULL_OBJECT_CHECK: compMaxUncheckedOffsetForNullObject=0x%X\n",
printf("STRESS_NULL_OBJECT_CHECK: compMaxUncheckedOffsetForNullObject=0x%zX\n",
compMaxUncheckedOffsetForNullObject);
}
}
Expand Down Expand Up @@ -9351,7 +9351,7 @@ void dumpConvertedVarSet(Compiler* comp, VARSET_VALARG_TP vars)

bool first = true;
printf("{");
for (size_t varNum = 0; varNum < comp->lvaCount; varNum++)
for (unsigned varNum = 0; varNum < comp->lvaCount; varNum++)
{
if (pVarNumSet[varNum] == 1)
{
Expand Down

0 comments on commit ad75a4a

Please sign in to comment.