Skip to content

Commit

Permalink
Bug#32107056 SEVERAL COMPILE WARNINGS FOR MYSQL CLUSTER ON WINDOWS WI…
Browse files Browse the repository at this point in the history
…TH VS 2019 [#3] [noclose]

storage\ndb\src\common\portlib\NdbThread.cpp(1240,3): warning C4805: '==': unsafe mix of type 'int' and type 'bool' in operation

Change-Id: I33e3ff9845f3d3e496f64401d30eaa9b992da594
  • Loading branch information
zmur committed Nov 5, 2020
1 parent c26a939 commit e6ae6fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/ndb/src/common/portlib/NdbThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ NdbThread_LockCPUSet(struct NdbThread* pThread,
unsigned long long temp, stat, dynamic;
unsigned long long num_cpu_ids = (unsigned long long)cpu_set_ptr[0];
unsigned int *stat_part = &cpu_set_ptr[2 + num_processor_groups];
int found = FALSE;
bool found = false;
for (unsigned int i = 0; i < num_processor_groups; i++)
{
stat = (unsigned long long)stat_part[i];
Expand All @@ -1233,11 +1233,11 @@ NdbThread_LockCPUSet(struct NdbThread* pThread,
{
used_processor_group = i;
min_so_far = temp;
found = TRUE;
found = true;
}
}
}
assert(found == TRUE);
assert(found);
KAFFINITY mask;
calculate_processor_mask(&mask,
used_processor_group,
Expand Down

0 comments on commit e6ae6fe

Please sign in to comment.