• 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: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary


  • Subject: Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 17 Mar 2009 23:27:15 -0400

Trygve Inda (email@hidden) on 2009-03-17 7:36 PM said:

>io_service_t        service;
>CFDictionaryRef     dict;
>
>dict = (CFDictionaryRef) IODisplayCreateInfoDictionary (service,
>kNilOptions);

Why the cast?

>No matter what I do I get:
>
>warning: cast to pointer from integer of different size

Which warning flag generates this?  I can't repro with -Wall -Wextra.
Try adding -fdiagnostics-show-option.

Sean


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >cast to pointer from int of diff size & IODisplayCreateInfoDictionary (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Automatically replacing part of text in a text label
  • Next by Date: Re: GUI Calls in Tool Executable seem to be No-Op. Nice, but safe?
  • Previous by thread: Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary
  • Next by thread: "selector ... is passed a return code and caller specified in contextInfo" ?!?!
  • Index(es):
    • Date
    • Thread