Potentially uninitialized variable warning in basic_ios.tcc

Wolfgang Bangerth wolfgang.bangerth@iwr.uni-heidelberg.de
Thu Feb 7 09:53:00 GMT 2002


> >       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




More information about the Libstdc++ mailing list