Chris, The attached patch eliminates warnings such as the following:
In file included from /usr/include/g++-3/set:31, from ../main.cc:145: /usr/include/g++-3/stl_tree.h: In function `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)': /usr/include/g++-3/stl_tree.h:1258: warning: can't inline call to `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)' /usr/include/g++-3/stl_tree.h:1266: warning: called from here See the following for further motivation: http://cygwin.com/ml/cygwin-apps/2002-05/msg00126.html http://cygwin.com/ml/cygwin-apps/2002-05/msg00127.html Would you be willing to accept this patch into the Cygwin gcc source tree? Thanks, Jason
--- stl_tree.h.orig Mon May 6 10:38:33 2002 +++ stl_tree.h Mon May 6 10:38:52 2002 @@ -1253,7 +1253,7 @@ _Rb_tree<_Key, _Value, _KoV, _Compare, _ upper_bound(__k)); } -inline int +int __black_count(_Rb_tree_node_base* __node, _Rb_tree_node_base* __root) { if (__node == 0)
Mon May 6 13:18:11 2002 Jason Tishler <[EMAIL PROTECTED]> * stl/stl_tree.h (__black_count): Remove inline to eliminate compiler warnings.
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/