Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Fix warning in ext_getPropertyAccessorsForClass #79

Merged

Conversation

sibljon
Copy link
Contributor

@sibljon sibljon commented Aug 20, 2014

I'm getting the following warning in Xcode 6 beta 6:

Pods/libextobjc/extobjc/EXTRuntimeExtensions.m:710:18: Initialization of pointer of type 'ext_propertyAttributes *' to null from a constant boolean expression

screen shot 2014-08-20 at 10 39 42 am

My understanding is limited, but it seems as though attributes is no longer used after the free(attributes) line. My changes fix the warning, but would this change have any unintended consequences? I ran the tests and they pass (though they fail to compile without the fix due to the warning).

@jspahrsummers
Copy link
Owner

My changes fix the warning, but would this change have any unintended consequences?

Nope, this was probably just a typo.

Thanks for the pull request!

jspahrsummers added a commit that referenced this pull request Aug 24, 2014
Fix warning in ext_getPropertyAccessorsForClass
@jspahrsummers jspahrsummers merged commit 2360d39 into jspahrsummers:master Aug 24, 2014
@sibljon
Copy link
Contributor Author

sibljon commented Sep 17, 2014

Would it be too much trouble to do a cocoa pods release with this commit? If not, it's not the end of the world. Thanks!

@jspahrsummers
Copy link
Owner

Sure, just tagged 0.4.1, though I don't control the podspec.

@mxcl
Copy link

mxcl commented Oct 9, 2014

@jspahrsummers if you want it, you should claim the podspec. Whoever it is that currently owns it is not updating it.

@jspahrsummers
Copy link
Owner

I don't use CocoaPods myself, so there probably isn't much value in me maintaining the podspec.

@mxcl
Copy link

mxcl commented Oct 9, 2014

It's just metadata. You should consider it.

@mxcl
Copy link

mxcl commented Oct 9, 2014

Actually, it's full of subspecs, so I guess this one requires someone familiar with pods.

diederich added a commit to cocologics/libextobjc that referenced this pull request Jun 28, 2017
Submodule changes to be committed:

* Configuration c8e5527...4ac967d (12):
  > Merge pull request jspahrsummers#80 from cocologics/feature/xcode9-update
  > Merge pull request jspahrsummers#79 from cocologics/feature/xcode9-update
  > Merge pull request jspahrsummers#71 from fabb/analyzer_localized
  > enable CLANG_ANALYZER_NONNULL
  > enable CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
  > enables SWIFT_TREAT_WARNINGS_AS_ERRORS
  > Merge pull request jspahrsummers#67 from fabb/enable_nullability_completeness_warning
  > Merge pull request jspahrsummers#65 from Abizern/xcode8_debug_flag
  > Merge pull request jspahrsummers#64 from diederich/enableTestability
  > Merge pull request jspahrsummers#63 from diederich/implicitCaptureOfSelf
  > Merge pull request jspahrsummers#62 from calebd/xcode-8-beta-5-warnings
  > Merge pull request jspahrsummers#61 from ikesyo/disable-framework-codesigning
diederich added a commit that referenced this pull request Jul 14, 2017
* bumped the xcconfigs to latest version
* fix build on Xcode 9 ('void' missing in strict declaration checking)

Submodule changes to be committed:

* Configuration c8e5527...4ac967d (12):
  > Merge pull request #80 from cocologics/feature/xcode9-update
  > Merge pull request #79 from cocologics/feature/xcode9-update
  > Merge pull request #71 from fabb/analyzer_localized
  > enable CLANG_ANALYZER_NONNULL
  > enable CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION
  > enables SWIFT_TREAT_WARNINGS_AS_ERRORS
  > Merge pull request #67 from fabb/enable_nullability_completeness_warning
  > Merge pull request #65 from Abizern/xcode8_debug_flag
  > Merge pull request #64 from diederich/enableTestability
  > Merge pull request #63 from diederich/implicitCaptureOfSelf
  > Merge pull request #62 from calebd/xcode-8-beta-5-warnings
  > Merge pull request #61 from ikesyo/disable-framework-codesigning
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants