Bug #111
closedintelmetool: compiler warning
100%
Description
I get a compiler warning when building intelmetool. I'm using GCC 6.3.0-14 from Debian stretch.
cc -O0 -g -Wall -W -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-sign-compare -Wno-unused-function -c -o intelmetool.o intelmetool.c
intelmetool.c: In function ‘dump_me_memory’:
intelmetool.c:85:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
dump = map_physical_exact((off_t)me_clone, (void *)me_clone, 0x2000000);
^
Updated by Paul Menzel over 7 years ago
- Status changed from New to Response Needed
- Assignee set to Paul Menzel
- % Done changed from 0 to 90
- Estimated time set to 1.00 h
Thank you for reporting this issue. Please note, that this only manifests itself with 64-bit userspace.
Change Id8d778e97090668ad9308a82b44c6b2b599fd6c3 should fix the problem.
Updated by Paul Wise over 7 years ago
This change looks good to me.
I note that 64-bit PC architectures are more popular than 32-bit these days and some distributions are even planning to drop 32-bit architectures.
Updated by Paul Menzel over 7 years ago
- Status changed from Response Needed to Resolved
The change was submitted.