2.71 Compiler warning

Wavesonics
Posts: 71
Joined: Thu May 22, 2008 8:03 pm

2.71 Compiler warning

Post by Wavesonics »

2.71 has started throwing a compiler warning about an function hiding an inherited function.

I checked into it and it's because the base function is const and the child is not.

Removing the const from the base's function signature fixed it, don't know if that's ok or not, but on file:
"btStridingMeshInterface.h" line 80
removing const from the end of the function signature it fixes the problem which cropped up in:
"btTriangleIndexArray.h" line 109
The function in question is:
virtual void setPremadeAabb(const btVector3& aabbMin, const btVector3& aabbMax );
russellbartley
Posts: 9
Joined: Thu Sep 04, 2008 4:17 am

Re: 2.71 Compiler warning

Post by russellbartley »

I too m getting this warning, in Codewarrior.

By the look of things the inherited setpremadeaabb does want to modify member variables, so the const is definitley not wanted.

I'd guess that the const needs to be removed from the base class.

Can we get this sorted, so I have less merges to do for each version of bullet please?

Thanks

Russ