From: psksvp <ps...@cc...> - 2003-09-10 04:52:30
|
Thanks Luke, but I was thinking of gcc flag that will disable this warning. psksvp ----- Original Message ----- From: "Luke Dunstan" <cod...@ho...> To: <min...@li...> Sent: Wednesday, September 10, 2003 2:33 PM Subject: Re: [Mingw-users] how to stop a warning flag > > ----- Original Message ----- > From: "psksvp" <ps...@cc...> > To: <min...@li...> > Sent: Wednesday, September 10, 2003 11:19 AM > Subject: [Mingw-users] how to stop a warning flag > > > > I wonder if anyone knows, how to stop the below warning while compiling > > > > psksvp > > > > c:/usr/home/MyCode/Common/xml.h:176: warning: > `Xml::Parser::m_strXmlVersion' > > will be initialized after > > c:/usr/home/MyCode/Common/xml.h:173: warning: `int Xml::Parser::m_nLine' > > If this is in the member initialiser list of a constructor, the members will > be initialised in the order that they are declared in the class body, so > change the order either in the declaration or the constructor. > > Warning: > > class A { > int x, y; > A() : y(1), x(2) { } > }; > > No warning: > > class A { > int x, y; > A() : x(2), y(1) { } > }; > > > Luke > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |