deque

David Vos dvos12@calvin.edu
Wed Apr 25 17:22:00 GMT 2001


I think this may be the wrong list to ask.  If so, let me know.  Sorry.

I'm compiling a project where I use an stl deque and I get the following
compilation warning:

[dvos12@qwerty 300]$ make
g++ -Wall -c SemanticStack.cpp
/usr/include/g++-2/stl_deque.h: In method `void deque<CSSElement
*,__default_alloc_template<true,0>,0>::reserve_map_at_front<CSSElement *,
alloc, 0>(unsigned int = 1)':
/usr/include/g++-2/stl_deque.h:890:   instantiated from `deque<CSSElement
*,__default_alloc_template<true,0>,0>::push_front_aux<CSSElement *, alloc,
0>(CSSElement *const &)'
/usr/include/g++-2/stl_deque.h:454:   instantiated from here
/usr/include/g++-2/stl_deque.h:638: warning: comparison between signed and
unsigned


The rest of the compilation went fine.  I cannot easily test how well it
runs at the moment.  (I've got a few thousand more lines of code to add
before this section is utilzed.  It's a compiler school.)  I cannot
decifer the message it spit out.  Is the whole thing just a complaint
about a signed and unsigned comparison?  If so, then I'm not worried.  Or
is it a prediction of the Apocalypse?

I am using egcs-2.91.66

David Vos



More information about the Gcc-help mailing list