|
From: Florian K. <fl...@ei...> - 2026-03-01 22:46:45
|
Hi Paul,
On 3/1/26 11:44, Paul Floyd via Valgrind-developers wrote:
>
> I don't have any strong opinions. I mainly use C++ at work so I'm used to
> monster template warnings/errors.
>
> First though, why the warning?
Because we compile with -Wall which implies -Wuninitialized which complains when
you pass a pointer as an argument to an unknown function which declares the
corresponding parameter to be a pointer to const. Like so:
void bar(const void *);
void foo(void)
{
int o;
bar(&o);
}
Which is exactly what happens here.
Florian
|