On Wed, Nov 14, 2012 at 07:12:14AM -0600, Reini Urban wrote:
> DaveM added those in 81ed78b2 to get rid of 'may be used uninitialized
> compiler warnings'
Actually they were added by Jesse Luehrs in 4f8dbb2da to get rid of
"set but not used" warnings.
> for dMULTICALL, set later in CHANGE_MULTICALL_WITHDEPTH and
> PUSH_MULTICALL_WITHDEPTH,
> but not set in the failing case for (newcv != last_pushed_cv ||
> PL_comppad != last_pad)
>
> clang and gcc get pleased with PERL_UNUSED_VAR, which is ((void)multicall_cop);
> Watcom is apparently better, as reading and writing is different.
>
> Better would be to set these to NULL as done in my attached patch.
Your patch removes the PERL_UNUSED_VAR's which will cause the
'set but not used' warnings to return under gcc etc.
The part of your patch that assigns null to those variables may silence
the OpenWatcom warnings, but they are unnecessary to the code logic,
because these variables are in fact never used (just assigned to
sometimes).
> Tests still fail all over, but this is blead.
patches welcome....
--
Counsellor Troi states something other than the blindingly obvious.
-- Things That Never Happen in "Star Trek" #16