[Xorp-cvs] XORP cvs commit: xorp/bgp xorp/libproto xorp/ospf

Pavlin Radoslavov pavlin at icir.org
Tue Jul 10 16:45:24 PDT 2007


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin at xorpc.icir.org	2007-07-10 23:45:24 UTC

XORP CVS repository


Modified files:
	bgp           bgp.hh peer_list.cc 
	libproto      spt.hh 
	ospf          peer_manager.cc 

Log message:
	Compilation workaround fix for MacOS X 10.4.10 with gcc-4.0.0 when
	compiled with -O2 compilation flag
	(e.g., with "./configure --enable-optimize --disable-debug").
	
	The compilation warning seems to indicate a problem with the system STL
	itself:
	
	/usr/include/gcc/darwin/4.0/c++/bits/stl_pair.h: In member function `void BGPPeerList::detach_peer(BGPPeer*)':
	/usr/include/gcc/darwin/4.0/c++/bits/stl_pair.h:85: warning: 'SR.738' is used uninitialized in this function
	
	The work-around is to use an alternative method to insert entries in
	an STL map.
	OLD:
	  my_map[key] = value;
	NEW:
	  my_map.insert(make_pair(key, value));
	
	Approved by:    Atanu Ghosh

Revision  Changes                              Path
1.66      +3 -3;  commitid: 7ce34694195d7ea6;  xorp/bgp/bgp.hh
1.25      +6 -5;  commitid: 7ce34694195d7ea6;  xorp/bgp/peer_list.cc
1.16      +2 -2;  commitid: 7ce34694195d7ea6;  xorp/libproto/spt.hh
1.143     +2 -2;  commitid: 7ce34694195d7ea6;  xorp/ospf/peer_manager.cc



More information about the Xorp-cvs mailing list