Mailinglist Archive: opensuse-programming (31 mails)
| < Previous | Next > |
Re: [opensuse-programming] What's the best way to cure uninitialized variables?
- From: Dave Plater <dave.plater@xxxxxxxxxxx>
- Date: Sat, 08 Aug 2009 10:58:52 +0200
- Message-id: <4A7D3E4C.9010606@xxxxxxxxxxx>
On 08/08/2009 10:35 AM, Per Jessen wrote:
some reason, I'm using it to test build with all the flags setup the
same as in the project spec file. For osc build I use quilt to patch. I
will try your suggestion and report back.
Regards
Dave P
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
Dave Plater wrote:I don't get the uninitialized variable warning in kdevelop3 at all for
On 08/07/2009 04:37 PM, Per Jessen wrote:I couldn't get it whole thing to build, I ended up getting linker errors
Dave Plater wrote:The author of the program has used m_float in more than one instance,
So if I initialize m_float in btVector3.h where I think it isYes, that's what I was going to try. Probably in the default
declared, do you think it will solve at least one of the problems?
constructor.
/Per Jessen, Zürich
I tried initializing the one in btVector3 and got a compiler error,
tried initializing the one in btSolverbody.h and it didn't make any
difference. I think I might have bitten off more than I can chew but
thats the best way to learn.
with a ton of symbols not found.
In extern/bullet2/src/LinearMath/btVector3.h, try this: (line 65-66)
/**@brief No initialization constructor */
SIMD_FORCE_INLINE btVector3() {
m_floats[0]=m_floats[1]=m_floats[2]=m_floats[3]=btScalar(0.); }
It compiles, but I don't know if it will solve the problem.
/Per Jessen, Zürich
some reason, I'm using it to test build with all the flags setup the
same as in the project spec file. For osc build I use quilt to patch. I
will try your suggestion and report back.
Regards
Dave P
--
To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
| < Previous | Next > |