marforic / imagemagick_lib_iphone

Scripts and instructions to compile ImageMagick as a static library to use in any iOS project
314 stars 71 forks source link

Cocoapod compile warning "Unknown attribute '__alloc_size__' ignored" #15

Open dredenba opened 9 years ago

dredenba commented 9 years ago

I'm not sure if this is the right repository but I think so.

I have included the ios imagemagick pod (pod 'ImageMagick', '~> 6.8.8-9') in my project but I get a compile warning in Xcode 7, on 8 different lines in magick/memory_.h

for example one of the warnings in the build logs looks like this:

In file included from Pods/Headers/Private/wand/MagickWand.h:72:
In file included from Pods/Headers/Private/magick/MagickCore.h:120:
Pods/Headers/Private/magick/memory_.h:29:36: warning: unknown attribute '__alloc_size__' ignored [-Wunknown-attributes]
  *(*AcquireMemoryHandler)(size_t) magick_alloc_size(1),