• 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: Still another static analyzer (and LLVM parser) mistake
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still another static analyzer (and LLVM parser) mistake


  • Subject: Re: Still another static analyzer (and LLVM parser) mistake
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 12 Jul 2010 21:53:49 -0400

Matt Neuburg (email@hidden) on 2010-07-12 20:16 said:

>There's no warning if you do this:
>
>NSArray* arr = [NSArray arrayWithObjects: @"howdy"];
>
>GCC's parser is smart enough to know that the missing nil terminator is just
>asking for trouble.

FWIW, there are a bunch of compiler warnings that gcc generates that
clang does not (and vice versa).  Also, there are gcc warning flags that
clang accepts but silently ignores.  Best to build with both compilers
from time to time.

And I encourage you to file bugs, they are very responsive.

Sean


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Still another static analyzer (and LLVM parser) mistake (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Still another static analyzer (and LLVM parser) mistake
  • Next by Date: Re: Deploying to an iPad
  • Previous by thread: Re: Still another static analyzer (and LLVM parser) mistake
  • Next by thread: NSFetchedResultsController variant?
  • Index(es):
    • Date
    • Thread