mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-16 07:49:43 +00:00
[OpenMP] Fix sign comparison warnings from GCC
New affinity patch introduced legitimate sign-compare warnings that clang doesn't report but GCC-10 does. This removes the warnings by changing two variables types to unsigned. Differential Revision: https://reviews.llvm.org/D95818
This commit is contained in:
parent
af43440bd2
commit
ffca74b8b8
@ -109,8 +109,8 @@ static int __kmp_affinity_remove_radix_one_levels(AddrUnsPair *addrP, int nTh,
|
|||||||
}
|
}
|
||||||
bool radix1 = true;
|
bool radix1 = true;
|
||||||
bool all_same = true;
|
bool all_same = true;
|
||||||
int id1 = addrP[0].first.labels[top_index1];
|
unsigned id1 = addrP[0].first.labels[top_index1];
|
||||||
int id2 = addrP[0].first.labels[top_index2];
|
unsigned id2 = addrP[0].first.labels[top_index2];
|
||||||
int pref1 = preference[type1];
|
int pref1 = preference[type1];
|
||||||
int pref2 = preference[type2];
|
int pref2 = preference[type2];
|
||||||
for (int hwidx = 1; hwidx < nTh; ++hwidx) {
|
for (int hwidx = 1; hwidx < nTh; ++hwidx) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user