[Ipopt-tickets] [Ipopt] #157: base class explicit initialization warnings
Ipopt
coin-trac at coin-or.org
Thu Apr 7 16:29:08 EDT 2011
#157: base class explicit initialization warnings
----------------------+-----------------------------------------------------
Reporter: PGherardi | Owner: ipopt-team
Type: defect | Status: new
Priority: normal | Component: Ipopt
Version: 3.9 | Severity: normal
Keywords: |
----------------------+-----------------------------------------------------
With gcc-4.2 and the flags -Wall -Wextra, I obtain the following warnings
when building the HS71 example included with the Ipopt documentation:
/Users/pgherardi/Desktop/SDICLIBS/ipopt/include/coin/IpOptionsList.hpp:150:
warning: base class ‘class Ipopt::ReferencedObject’ should be explicitly
initialized in the copy constructor
/Users/pgherardi/Desktop/SDICLIBS/ipopt/include/coin/IpRegOptions.hpp:72:
warning: base class ‘class Ipopt::ReferencedObject’ should be explicitly
initialized in the copy constructor
Indeed, referring to the source for these constructors, they are not
calling ReferencedObject().
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/157>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list