From: Duft M. <Mar...@sa...> - 2006-10-18 11:12:02
|
The reason for the copy is that args_asm get/may get modified after = that, and this should not happen with the original arguments, since they = get passed on to other tasks too. I'm using /W3 since /W4 is absolutely = unusable, i will not correct those warning (at least not all of them) = WP64 will get interesting in the next few weeks, i'll look at it. Cheers, Markus=20 -----Original Message----- From: int...@li... = [mailto:int...@li...] On Behalf = Of Jerker B=E4ck Sent: Wednesday, October 18, 2006 12:00 PM To: int...@li... Subject: [wgcc-dev] std::list construct question A quick question Did a WIN32 compile and some things float up a lot of 4100 warnings = (unreferenced formal parameter) not so pretty - I suggest: Do a /W4 /Wp64 WIN32 compile to clean them = out Then the compiler does not understand this (last line): from AssemblerQueue.cpp(40) bool AssemblerTaskQueue::prepare( const std::list< CommandLine::OptionValue >& arguments) { if(m_Predicate) if(!m_Predicate->required()) return false; for(std::list<std::string>::iterator it =3D context.sources.assembler.begin(); it !=3D context.sources.assembler.end(); it++) { std::list<CommandLine::OptionValue> args_asm(arguments); warning C4510: 'std::_List_nod<_Ty,_Alloc>::_Node' :=20 default constructor could not be generated warning C4610: struct 'std::_List_nod<_Ty,_Alloc>::_Node'=20 can never be instantiated - user defined constructor required You try construct a new list copy from a reference to a list? I don't understand, why not use arguments as it is? regards Jerker B=E4ck=20 -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Interix-wgcc-developer mailing list Int...@li... https://lists.sourceforge.net/lists/listinfo/interix-wgcc-developer |