[xcrysden] Compile fixes for newer gcc

Tone Kokalj xcrysden@democritos.it
Tue, 21 Mar 2006 15:05:21 +0100


On Wed, 2006-03-01 at 19:46 +0100, Wolfram Quester wrote:
> Hi altogether!
> 
> I tried to compile XCrySDen here with gcc-4.0, but the compilation
> failed with
> 
> xcDisplayFunc.c:162: error: static declaration of ˇHandleDisplay˘ follows non-static declaration
> anaglyph.h:81: error: previous declaration of ˇHandleDisplay˘ was here
> xcDisplayFunc.c:164: error: static declaration of ˇCameraHome˘ follows non-static declaration
> anaglyph.h:82: error: previous declaration of ˇCameraHome˘ was here
> xcDisplayFunc.c:165: error: static declaration of ˇNormalise˘ follows non-static declaration
> anaglyph.h:83: error: previous declaration of ˇNormalise˘ was here
> xcDisplayFunc.c:166: error: static declaration of ˇCalcNormal˘ follows non-static declaration
> anaglyph.h:84: error: previous declaration of ˇCalcNormal˘ was here
> make[2]: *** [xcDisplayFunc.o] Error 1
> make[2]: Leaving directory `/tmp/XC/C'
> make[1]: *** [compile] Error 2
> make[1]: Leaving directory `/tmp/XC/C'
> make: *** [src-C] Error 2
> 
> 
> The attached patch fixes this. 

Thank you very much for the patch. The even simpler solution is to
simply
delete these lines from anaglyph.h, as they are redundant.

void HandleDisplay(struct Togl *togl);
void CameraHome();
void Normalise(XYZ *);
XYZ  CalcNormal(XYZ,XYZ,XYZ);

Regards, Tone