• 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: Pass-by value… warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pass-by value… warning


  • Subject: Re: Pass-by value… warning
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 6 Jul 2010 23:54:44 -0700

vincent habchi wrote:

The analyzer does not figure out that the pt array gets initialized through the loop by copying values directly from a chunk of memory, and spits out the warning about pt [•] not being defined. Maybe I should report this to the LLVM team?


That seems like a good idea.

However, also consider that 'dim' may take on values 0 or 1. If dim is 0 or 1, then the local 'pt' array may not have valid elements at pt [0] or pt[1]. You may know that dim is never 0 or 1, but the analyzer has no way of knowing that.

And I don't know what might happen if dim is negative.

  -- GG

_______________________________________________

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


  • Follow-Ups:
    • Re: Pass-by value… warning
      • From: vincent habchi <email@hidden>
  • Prev by Date: Scrolling not working ...
  • Next by Date: Re: Pass-by value… warning
  • Previous by thread: Re: Scrolling not working ...
  • Next by thread: Re: Pass-by value… warning
  • Index(es):
    • Date
    • Thread