[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #107538] Patch: "warning: cast to pointer from integer of different
From: |
Jeffrey Walton |
Subject: |
[sr #107538] Patch: "warning: cast to pointer from integer of different size" |
Date: |
Wed, 24 Nov 2010 18:14:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12 |
URL:
<http://savannah.gnu.org/support/?107538>
Summary: Patch: "warning: cast to pointer from integer of
different size"
Project: GnuTLS
Submitted by: noloader
Submitted on: Wed 24 Nov 2010 06:14:39 PM GMT
Category: None
Priority: 5 - Normal
Severity: 2 - Minor
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
>From the low hanging fruit department.....
This clears about 50 instances (give or take) of "warning: cast to pointer
from integer of different size". I believe the warning only showed up on x64
systems.
gnutls_transport_ptr_t is typedef'd as a void*, while a file descriptor is a
[fixed sized] int. OK on x86, warning on x64.
Previous:
gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t) sd);
Proposed:
gnutls_transport_set_ptr (session, (gnutls_transport_ptr_t)
(ssize_t)sd);
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 24 Nov 2010 06:14:39 PM GMT Name: pointer-from-integer.patch
Size: 19kB By: noloader
<http://savannah.gnu.org/support/download.php?file_id=22098>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107538>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [sr #107538] Patch: "warning: cast to pointer from integer of different size",
Jeffrey Walton <=