JSGCDDispatcher icon indicating copy to clipboard operation
JSGCDDispatcher copied to clipboard

Static analysis problems

Open dsowsy opened this issue 12 years ago • 1 comments

In an iOS7 based project,

  1. JSGCDDispatcher.m:117:98: Variable 'bgTask' is uninitialized when captured by block
  2. JSGCDDispatcher.h:15:8: Instance variable '_backgroundTimeAvailable' in class 'JSGCDDispatcher' is never used by the methods in its @implementation (although it may be used by category methods)

dsowsy avatar Oct 02 '13 21:10 dsowsy

@dsowsy,

I've identified the issue and bgTask should be initialized to some value before it is used in the block. I'll also be upgrading other aspects of it to get it up to speed.

jdewind avatar Oct 07 '13 18:10 jdewind