Closed hankbao closed 8 years ago
This is a legitimate warning/error. A NULL
comparison is useless because the character array is embedded in the structure allocation itself.
But, ideally, this would be fixed upstream in libextobjc. :wink:
I see. Thanks for your reply.
When could this be fixed? I don't like warnings. Thanks.
+1 is this in the works?
Please do not +1 issues. If you want to see it fixed sooner, please submit a pull request (upstream to libextobjc, as mentioned).
I believe this is fixed by #23 now.
Yep, thanks!
Got this error when using carthage to integrate MTLManagedObjectAdapter:
MTLManagedObjectAdapter/MTLManagedObjectAdapter.m:754:41: error: comparison of array 'attributes->type' not equal to a null pointer is always true
attributes->type != NULL
It seems that changing
type
fromchar[]
tochar*
can fix this error. So this may actually relate to libextobjc.