[Magick-bugs] 6.4.2-4: distort.h: trailing comma after ShepardsDistortion

Ryan Schmidt imagemagick-2008c at ryandesign.com
Wed Jul 23 16:17:46 PDT 2008


In ImageMagick 6.4.2-4 there is a new option ShepardsDistortion in  
the DistortImageMethod enum in distort.h. But there is a comma after  
it, even though it is the last item in the enum. This causes this  
compiler error when trying to use distort.h (at least on Mac OS X's  
gcc 4.0 compiler):

/opt/local/include/ImageMagick/magick/distort.h:38: error: comma at  
end of enumerator list

See this ticket which was filed with the MacPorts project:

http://trac.macports.org/ticket/16072

We have worked around the issue by removing the trailing comma:

http://trac.macports.org/browser/trunk/dports/graphics/ImageMagick/ 
files/patch-magick-distort.h.diff?rev=38524

But I wanted to let you know so you can make the fix in your sources  
too.

Thanks.

-Ryan



More information about the Magick-bugs mailing list