This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]