You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2005/10/20 00:24:45 UTC
[jira] Resolved: (STDCXX-56) [gcc -Wshadow] warning from and
[ http://issues.apache.org/jira/browse/STDCXX-56?page=all ]
Martin Sebor resolved STDCXX-56:
--------------------------------
Resolution: Fixed
The warnings are gone with the change.
> [gcc -Wshadow] warning from <deque> and <vector>
> ------------------------------------------------
>
> Key: STDCXX-56
> URL: http://issues.apache.org/jira/browse/STDCXX-56
> Project: STDCXX
> Type: Bug
> Components: 23. Containers
> Versions: 4.1.2
> Environment: gcc 2.95.2
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: 4.1.3
>
> Compiling <deque> and <vector> with gcc 2.95.2 (this one was on IRIX but the OS probably doesn't matter) yields lots of warnings like the one below:
> gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG -D_REENTRANT -D_RWSTD_USE_CONFIG -I/build/sebor/gcc-2.95.2-15d/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include -pedantic -nostdinc++ -fhonor-std -ftemplate-depth-32 -fsquangle -g -Wall -W -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /build/sebor/dev/stdlib/examples/manual/trnsform.cpp
> /build/sebor/dev/stdlib/include/deque: In method `void std::deque<int,std::allocator<int> >::insert<const int *>(__rw::__rw_debug_iter<std::deque<int,std::allocator<int> >,std::__rw_deque_iter<int,int,int *,int &,std::allocator<int> >,std::__rw_deque_iter<int,int,int *,int &,std::allocator<int> > >, const int *, const int *)':
> /build/sebor/dev/stdlib/include/deque.cc:524: instantiated from `std::deque<int,std::allocator<int> >::_C_assign_range<const int *>(const int *, const int *, std::input_iterator_tag)'
> /build/sebor/dev/stdlib/include/deque:764: instantiated from here
> /build/sebor/dev/stdlib/include/deque:627: warning: declaration of `__it' shadows previous local
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira