[Bf-committers] Gcc 3.4.0 error compile error

Ton Roosendaal bf-committers@blender.org
Sat, 1 May 2004 11:19:53 +0200


That's indeed a weird workaround, and smells like a compiling error.  
The code in CVS looks to me like compliant C.

Let's wait for gcc team to reply, eh?


On Saturday, May 1, 2004, at 02:01 Europe/Amsterdam, Panagiotis  
Papadakos wrote:

> The fix that got into CVS about the gcc-3.4.0 does not fix the problem
> and the long cast is probably not needed at all.
> Gcc gives this error if you compile your code with -O, -O2, -O3 flags,
> else it compiles just fine. I just sent a mail to the gcc mailing list
> to see if it is a gcc bug. The only way to compile
> source/blender/blenkernel/intern/exotic.c with the default -O2 flag is
> using the attached patch.
> 	Panagiotis Papadakos<gcc_340_patch>
Ton Roosendaal  Blender Foundation ton@blender.org