• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hiding "cast from pointer to integer of different size" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding "cast from pointer to integer of different size" warning


  • Subject: Re: Hiding "cast from pointer to integer of different size" warning
  • From: John Mikros <email@hidden>
  • Date: Tue, 19 Sep 2006 10:20:45 -0700


void* result = getWgt()->GetNfyData(); char keyChar = static_cast<char>(reinterpret_cast<int>(result));

On Sep 18, 2006, at 1:59 PM, Mark Wagner wrote:

Given the following code

   char keyChar = (char)getWgt()->GetNfyData();

where GetNfyData() returns a void *, how can I hide the resulting
"cast from pointer to integer of different size" warning?  I'm using
GCC 3.3.

-- Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Hiding "cast from pointer to integer of different size" warning (From: "Mark Wagner" <email@hidden>)

  • Prev by Date: Re: Hiding "cast from pointer to integer of different size" warning
  • Next by Date: Re: Attach to Process to debug Framework
  • Previous by thread: Re: Hiding "cast from pointer to integer of different size" warning
  • Next by thread: Build Styles corrupted?
  • Index(es):
    • Date
    • Thread