diff options
author | James McDonnell <jmcdonnell@qnx.com> | 2016-06-09 12:13:08 -0400 |
---|---|---|
committer | James McDonnell <jmcdonnell@qnx.com> | 2016-06-13 19:00:32 +0000 |
commit | e969e6d2ca5636b87b3de963ebd8dac993275617 (patch) | |
tree | f09d6c8a611cecf15c0da360cdcf8c13257a7e5b /src/network | |
parent | 27e94bd9d1ac5faaa8b1e4ee5d57f820675194b1 (diff) |
Fix cast warnings when pthread_t is smaller than a pointer
Push conversions from pthread_t to Qt::HANDLE and back into functions.
The casts that were being used didn't work for the unusual 64-bit
pointer/32-bit int combination that QNX is using for 7.0. HANDLE ends
up as a 64-bit pointer and pthread_t ends up as a 32-bit integer. g++
considers the precision loss when converting from the 64-bit pointer
to the 32-bit integer an error. Better to have the casts hidden in
functions so it's easier to adjust them for unusual combinations such
as this.
Change-Id: Ia156b26224a0f7edc1c31e3d1ee8b21191381698
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network')
0 files changed, 0 insertions, 0 deletions