Project

General

Profile

Actions

Bug #111

closed

intelmetool: compiler warning

Added by Paul Wise over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
userspace utilities
Target version:
-
Start date:
05/04/2017
Due date:
% Done:

100%

Estimated time:
1.00 h
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

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);
^

Actions #1

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.

Actions #2

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.

Actions #3

Updated by Paul Menzel over 7 years ago

  • Status changed from Response Needed to Resolved

The change was submitted.

Actions #4

Updated by Paul Menzel over 7 years ago

  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF