'respect_parenthesis' defined but not used
Posted: 2011-02-24T14:16:41-07:00
Declaration:CC wand/wand_libMagickWand_la-animate.lo
./wand/mogrify-private.h:126:3: warning: 'respect_parenthesis' defined but not used
Code: Select all
static MagickBooleanType
respect_parenthesis = MagickFalse;
So respect_parenthesis is a modified static variable which makes the code non-reentrant.wand/compare.c: In function 'CompareImageCommand':
wand/compare.c:790:13: error: assignment of read-only variable 'respect_parenthesis'
For the time being, just to make things compile, I am going to make it a constant except for the files that need it:
Code: Select all
#ifndef MAGICK_WAND_RESP_PAR_MOD
#define MAGICK_WAND_RESP_PAR_MOD const
#endif
The following sources try to modify a variable thus declared (note that they are all distinct variables with the same name): animate.c, compare.c, composite.c, convert.c, display.c, identify.c,import.c, mogrify.c, montage.c and stream.c.