From: Brian P. <br...@va...> - 2001-05-17 14:49:19
|
Jean-Francois Panisset wrote: > > I just did a CVS co of the main branch, and I get the following compilation > failure under IRIX: > > cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../src -g -D_REENTRANT -DPTHREADS -Wp,-MDupdate,.deps/s_aaline.pp -c s_aaline.c -DPIC -o .libs/s_aaline.lo > cc-1020 cc: ERROR File = s_aalinetemp.h, Line = 79 > The identifier "index" is undefined. > > (void) index; > ^ > > The following code was changed yesterday in s_aalinetemp.h from version > 1.9 to version 1.10: > > static void > NAME(plot)(GLcontext *ctx, const struct LineInfo *line, > struct pixel_buffer *pb, int ix, int iy) > { > ... > #ifdef DO_RGBA > GLchan red, green, blue, alpha; > #else > GLint index; > #endif > ... > #ifdef DO_INDEX > index = (GLint) solve_plane(fx, fy, line->iPlane); > #else > (void) index; > #endif > > Without having looked at all the details, I imagine that if DO_INDEX > is defined, then DO_RGBA is not, and thus GLint index is not defined. > If I remove: > > #else > (void) index; > > the file compiles fine. I've fixed this. -Brian |