| List: | Commits | « Previous MessageNext Message » | |
| From: | Marko Mäkelä | Date: | May 13 2010 9:36am |
| Subject: | Re: bzr commit into mysql-5.1-innodb branch (marko.makela:3464) Bug#53593 | ||
| View as plain text | |||
Hi Davi, I couldn't resist checking my email on a holiday :-) On Wed, May 12, 2010 at 07:39:39PM -0300, Davi Arnaut wrote: >>Like I wrote later in the bug report, I would not remove >>-UFORCE_INIT_OF_VARS after all. If we removed it, LINT_INIT would have >>to be edited to declare the variable uninitialized in Valgrind. > >I see, but my point is that FORCE_INIT_OF_VARS isn't really adequate >for valgrind. Presumably, it is used to silence where valgrind would >wrongly warn (false positive) about variables being used without >being initialized. But this should be silenced using the valgrind >suppression file, otherwise the valgrind warning would be relevant >and should be fixed. No, you got my point wrong. The patch as I posted it is not removing -DFORCE_INIT_OF_VARS but -UFORCE_INIT_OF_VARS. I think that the FORCE_INIT_OF_VARS (which enables LINT_INIT) is only needed to silence warnings from inaccurate static analysis tools. >Agree? Bottom line, do you see any valgrind warnings if the >initialization of variables is not forced? Currently, the initialization of variables is not forced when compiling for Valgrind, and I hope we are not seeing (m)any Valgrind warnings due to that. [..] >Yes, mysql-5.1-innodb is fine. You aren't touching places that change >very often. Great, I will prepare the revised patch against it. Marko
