6.4.2-4: distort.h: trailing comma after ShepardsDistortion

Ryan Schmidt <[email protected]>
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.