This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Potentially uninitialized variable warning in basic_ios.tcc
- From: Wolfgang Bangerth <wolfgang dot bangerth at iwr dot uni-heidelberg dot de>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 7 Feb 2002 18:53:04 +0100 (MET)
- Subject: Re: Potentially uninitialized variable warning in basic_ios.tcc
> > basic_ios<_CharT, _Traits>::narrow(char_type __c, char __dfault) const
> > ! {
> > ! char __ret;
> + char __ret = __dfault.
>
> > if (_M_check_facet(_M_ios_fctype))
> > ! __ret = _M_ios_fctype->narrow(__c, __dfault);
> > ! return __ret;
> > }
>
> This would probably be better.
One could probably argue that that's a matter of taste ;-) It's fine if
it's fixed, says the pragmatist in me.
Thanks
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: wolfgang.bangerth@iwr.uni-heidelberg.de
www: http://gaia.iwr.uni-heidelberg.de/~wolf