On 08/08/2009 04:30 PM, Philipp Thomas wrote:
On Sat, 08 Aug 2009 15:58:59 +0200, you wrote:
blender-2.49/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp Line 1836 = *poly_index_pt++ = *poly_index_pt++ = index[i]; Line 1783 = *poly_index_pt++ = *poly_index_pt++ = index[i];
I will revert back to the original.
no need for that :) AFAICT you just need to change both lines to
*poly_index_pt = *(poly_index_pt+1) = index[i]; *poly_index_pt += 2;
The compiler correctly complains because the outcome of the original operation is undefined as the compiler is free to choose the order in which to execute them as there are no sequence points which would order the operations. Therefore the programmer has to split such operations in a way that forces the compiler to do the operations exactly in the sequence the programmer had in mind.
I've encountered such code more often then I would like but only after GCC began to complain about it.
Philipp
Thanks Philipp, I will try that but it seems Per's solution works on the stable blender-2.49, it's completed building with only the last unitialized variable left to sort out :- W: blender uninitialized-variable extern/bullet2/src/LinearMath/btAlignedObjectArray.h:224 Regards Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org