This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.0.x] may reach end warning in system headers
Andrew Pinski <pinskia@physics.uc.edu> writes:
| On Jul 1, 2005, at 2:30 PM, Geoffrey Keating wrote:
|
| >
| > One of our users was getting
| >
| > /usr/include/gcc/darwin/4.0/c++/bits/stl_uninitialized.h:113: warning:
| > control may reach end of non-void function '_ForwardIterator
| > std::__uninitialized_copy_aux(_InputIterator, _InputIterator,
| > _ForwardIterator, __false_type) [with _InputIterator =
| > __gnu_cxx::__normal_iterator<TPoolAllocator::tAllocState*,
| > std::vector<TPoolAllocator::tAllocState,
| > std::allocator<TPoolAllocator::tAllocState> > >, _ForwardIterator =
| > __gnu_cxx::__normal_iterator<TPoolAllocator::tAllocState*,
| > std::vector<TPoolAllocator::tAllocState,
| > std::allocator<TPoolAllocator::tAllocState> > >]' being inlined
|
| This is PR 21951 which should be worked around in libstdc++ instead
| of in GCC or at that least that is what was decided.
That is a view but I do not share it. Geoff's local change sounds
much more sensible to me, and is less invasive.
-- Gaby