Re: Switching from GCC to Clang, any downsides?
Re: Switching from GCC to Clang, any downsides?
- Subject: Re: Switching from GCC to Clang, any downsides?
- From: Markus Spoettl <email@hidden>
- Date: Tue, 8 Sep 2009 12:05:32 +0200
Hello Ingvar,
On Sep 8, 2009, at 11:42 AM, Ingvar Nedrebo wrote:
The one I've found is that clang doesn't warn about missing returns
from non-void functions. To wit:
Indeed, I could have sworn I saw this, must have been before the switch.
While this isn't caught during a normal build, it is in a way by the
analyzer, though the warning is indirect:
"Value stored to 'result' is never read"
If you're returning something other than a local variable, you're not
being warned.
Thanks for the hint, this is definitely something that I'm relying on.
Regards
Markus
--
__________________________________________
Markus Spoettl
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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