Strange type-punning warning
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