Bug 1150298 - ARM 32 bit on Ubuntu: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Summary: ARM 32 bit on Ubuntu: warning: cast to pointer from integer of different size...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-07 21:02 UTC by Richard W.M. Jones
Modified: 2016-05-09 08:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-09 08:27:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-10-07 21:02:30 UTC
Description of problem:

Lots and lots of warnings during the compile like this:

Guestfs.c: In function 'XS_Sys__Guestfs_zfgrep':
Guestfs.c:25673:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zfgrepi':
Guestfs.c:25722:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zfile':
Guestfs.c:25769:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zgrep':
Guestfs.c:25814:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Guestfs.c: In function 'XS_Sys__Guestfs_zgrepi':
Guestfs.c:25863:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         g = (guestfs_h *) SvIV (*svp);
             ^
Note this is a 32 bit ARM platform, but I would expect that both
integers and pointers are 32 bit.

Version-Release number of selected component (if applicable):

libguestfs 1.27.59

How reproducible:

100%

Steps to Reproduce:
1. Compile libguestfs.

Comment 1 Pino Toscano 2016-05-09 08:27:26 UTC
This should be hopefully fixed with
https://github.com/libguestfs/libguestfs/commit/873560f495478e20e13f73532bf3426cde0d517c
which is in libguestfs >= 1.33.28.


Note You need to log in before you can comment on or make changes to this bug.