I'm seeing the following compiler warning under linux with gcc-4.0.2 when extra warnings are enabled (-Wextra):

/usr/local/include/OpenEXR/ImfAttribute.h:256: warning: base class 'class Imf::Attribute' should be explicitly initialized in the copy constructor

The code which triggers this is:

    Imath::M44f mat;
    Imf::Header hdr (720, 486);
    hdr.insert("mat", Imf::M44fAttribute(mat));

The warning goes away if I use an intermediate Imf::M44fAttribute object:

    Imath::M44f mat;
    Imf::M44fAttribute matAttr (mat);
    Imf::Header hdr (720, 486);
    hdr.insert("mat", matAttr);

The warning seems benign, but I wanted to check to make sure. Anybody know for sure?

Also, there is a typo in the commented example for ASSERT in IexMacros.h. In the example the order of the arguments is listed incorrectly.

Thanks.
--Ken



_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to