Re: problem with -Wunreachable-code
Re: problem with -Wunreachable-code
- Subject: Re: problem with -Wunreachable-code
- From: "Sean McBride" <email@hidden>
- Date: Sat, 22 Jul 2006 15:01:12 -0400
Eric Albert (email@hidden) on 2006-07-21 23:54 said:
>> I have been going through that doc as well, and -Wunreachable-code
>> also
>> gives a warning everytime assert() from assert.h is used.
>
>Yep. Kind of annoying, huh? But the assert() warning has been fixed
>for a future release, so hopefully you'll be able to use -
>Wunreachable-code more often eventually.
Great! Is it something that I can fix myself in the meantime by
altering my assert.h header?
I hope <rdar://4115550> is fixed also, all someone needs to do is add 6
characters to assert.h to fix it. :)
>> Apple's headers are full of warnings in general BTW.
>
>If you find warnings in Apple's headers when compiling C99 code,
>please file bugs. We're always interested in hearing about those
>cases. -pedantic is an exception to that, by the way; I'm
>disappointed that the static code analysis article recommended it.
Well, I'm hesitant to do that. A year ago I spent an afternoon filing
radars for warnings and errors in Apple's headers and the vast majority
are not fixed. For <rdar://4056291> I even supplied a patch! Perhaps
since the bugs are CodeWarrior-related, they are ignored?
Sean
--
"attack begets defence, whereas courtesy begets respect"
_______________________________________________
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