• 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: Switching from GCC to Clang, any downsides?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Switching from GCC to Clang, any downsides? (From: Markus Spoettl <email@hidden>)
 >Re: Switching from GCC to Clang, any downsides? (From: Ingvar Nedrebo <email@hidden>)

  • Prev by Date: Re: Switching from GCC to Clang, any downsides?
  • Next by Date: Re: Switching from GCC to Clang, any downsides?
  • Previous by thread: Re: Switching from GCC to Clang, any downsides?
  • Next by thread: Re: Switching from GCC to Clang, any downsides?
  • Index(es):
    • Date
    • Thread