• 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
Strange type-punning warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange type-punning warning


  • Subject: Strange type-punning warning
  • From: "Bob Currier" <email@hidden>
  • Date: Thu, 28 Sep 2006 19:10:02 -0700

When -fstrict-aliasing is enabled, I get quite a few warnings of the type:

warning: type-punning to incomplete type might break string-aliasing rules

I know what type-punning and aliasing are, but the statement I'm getting
this on is the assignment:

    NavDialogCreateOptions      navOptions;

    navOptions.saveFileName = CFSTR("untitled");


I've looked at the definition of NavDialogCreateOptions and don't see
any opportunities for type-punning. Casting CFSTR to a CFStringRef makes
no difference (of course).

What's up?

 _______________________________________________
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

  • Follow-Ups:
    • Re: Strange type-punning warning
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Re: build results window does not scroll properly
  • Next by Date: MyApp crashing with EXC_BADACCESS
  • Previous by thread: Re: build results window does not scroll properly
  • Next by thread: Re: Strange type-punning warning
  • Index(es):
    • Date
    • Thread