openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Imf::Attribute compiler warning


From: Florian Kainz
Subject: Re: [Openexr-devel] Imf::Attribute compiler warning
Date: Fri, 20 Jun 2008 16:15:06 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

Hi Ken,

fixes for both issues have been checked into CVS:

The constructors for Imf::TypedAttribute<T> now explicitly
instantiate the Attribute base class.  The typo in the
comment in IexMacros.h has been corrected.

Florian


Ken McGaugh wrote:
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/openexr-devel







reply via email to

[Prev in Thread] Current Thread [Next in Thread]