Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Wkerry on December 31, 2024, 04:12:35 am

Title: CamelCase variable problem
Post by: Wkerry on December 31, 2024, 04:12:35 am
https://github.com/arnholm/codeblocks_sfmirror/blob/master/src/tools/cbp2make/src/cbpunit.cpp#L115 has m_Filename instead of m_FileName as per https://github.com/arnholm/codeblocks_sfmirror/blob/master/src/tools/cbp2make/src/cbpunit.h#L36
Title: Re: CamelCase variable problem
Post by: ollydbg on January 01, 2025, 02:49:40 am
If the variable does not match, why the compiler hasn't report this?

Maybe, the # if branch is not active in your reported case?
Title: Re: CamelCase variable problem
Post by: Wkerry on January 01, 2025, 04:54:24 am
I just spotted this by accident (open the file by mistake and spotted it) as the variable does not match the variable in the #if code block.
Title: Re: CamelCase variable problem
Post by: Miguel Gimenez on January 02, 2025, 02:07:03 pm
Fixed in r13601 (https://sourceforge.net/p/codeblocks/code/13601/), thank you.
Title: Re: CamelCase variable problem
Post by: Wkerry on January 02, 2025, 10:23:58 pm
Thanks for taking the time to sort this out.