magicalpanda/MagicalRecord — pull request #92 by baron (2011-12-03 13:13:06+00:00)
Title: Header fixes

I've noticed some issues with the main header file, the big one being

#ifndef NS_AUTOMATED_REFCOUNT_UNAVAILABLE

using "#ifndef" in the header will ensure that it always defaults to the else condition. I noticed this when I turned off ARC and ran analyze on my project (MR_AUTORELEASE and company didn't have any effect).

I also wrapped ENABLE_ACTIVE_RECORD_LOGGING in an #ifndef since I want to be able to enable it on debug builds and disable it on release builds. In the previous form I had to manually change that one line every time I updated the code.

The rest of the changes are basically fixes to make XCode's static analysis happy. Please review to ensure that I didn't mess anything up.