fixed multiple build warnings

pull/29/head
Vadim Pisarevsky 12 years ago
parent e17b70e533
commit bf7295f584
  1. 2
      3rdparty/openexr/IlmImf/ImfAcesFile.h
  2. 4
      3rdparty/openexr/IlmImf/ImfAttribute.h
  3. 8
      3rdparty/openexr/IlmImf/ImfBoxAttribute.cpp
  4. 4
      3rdparty/openexr/IlmImf/ImfChannelListAttribute.cpp
  5. 4
      3rdparty/openexr/IlmImf/ImfChromaticitiesAttribute.cpp
  6. 4
      3rdparty/openexr/IlmImf/ImfCompressionAttribute.cpp
  7. 4
      3rdparty/openexr/IlmImf/ImfEnvmapAttribute.cpp
  8. 2
      3rdparty/openexr/IlmImf/ImfIO.cpp
  9. 4
      3rdparty/openexr/IlmImf/ImfKeyCodeAttribute.cpp
  10. 4
      3rdparty/openexr/IlmImf/ImfLineOrderAttribute.cpp
  11. 16
      3rdparty/openexr/IlmImf/ImfMatrixAttribute.cpp
  12. 4
      3rdparty/openexr/IlmImf/ImfOpaqueAttribute.cpp
  13. 2
      3rdparty/openexr/IlmImf/ImfOutputFile.cpp
  14. 4
      3rdparty/openexr/IlmImf/ImfPreviewImageAttribute.cpp
  15. 2
      3rdparty/openexr/IlmImf/ImfRational.h
  16. 4
      3rdparty/openexr/IlmImf/ImfRationalAttribute.cpp
  17. 4
      3rdparty/openexr/IlmImf/ImfRleCompressor.cpp
  18. 4
      3rdparty/openexr/IlmImf/ImfStringAttribute.cpp
  19. 4
      3rdparty/openexr/IlmImf/ImfStringVectorAttribute.cpp
  20. 1
      3rdparty/openexr/IlmImf/ImfThreading.cpp
  21. 6
      3rdparty/openexr/IlmImf/ImfTileDescriptionAttribute.cpp
  22. 4
      3rdparty/openexr/IlmImf/ImfTimeCodeAttribute.cpp
  23. 24
      3rdparty/openexr/IlmImf/ImfVecAttribute.cpp
  24. 4
      3rdparty/openexr/IlmImf/ImfZipCompressor.cpp

@ -90,7 +90,7 @@ namespace Imf {
class RgbaOutputFile;
class RgbaInputFile;
struct PreviewRgba;
class Chromaticities;
struct Chromaticities;
//
// ACES red, green, blue and white-point chromaticities.

@ -316,7 +316,7 @@ TypedAttribute<T>::copy () const
template <class T>
void
TypedAttribute<T>::writeValueTo (OStream &os, int version) const
TypedAttribute<T>::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value);
}
@ -324,7 +324,7 @@ TypedAttribute<T>::writeValueTo (OStream &os, int version) const
template <class T>
void
TypedAttribute<T>::readValueFrom (IStream &is, int size, int version)
TypedAttribute<T>::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value);
}

@ -57,7 +57,7 @@ Box2iAttribute::staticTypeName ()
template <>
void
Box2iAttribute::writeValueTo (OStream &os, int version) const
Box2iAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.min.x);
Xdr::write <StreamIO> (os, _value.min.y);
@ -68,7 +68,7 @@ Box2iAttribute::writeValueTo (OStream &os, int version) const
template <>
void
Box2iAttribute::readValueFrom (IStream &is, int size, int version)
Box2iAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.min.x);
Xdr::read <StreamIO> (is, _value.min.y);
@ -87,7 +87,7 @@ Box2fAttribute::staticTypeName ()
template <>
void
Box2fAttribute::writeValueTo (OStream &os, int version) const
Box2fAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.min.x);
Xdr::write <StreamIO> (os, _value.min.y);
@ -98,7 +98,7 @@ Box2fAttribute::writeValueTo (OStream &os, int version) const
template <>
void
Box2fAttribute::readValueFrom (IStream &is, int size, int version)
Box2fAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.min.x);
Xdr::read <StreamIO> (is, _value.min.y);

@ -72,7 +72,7 @@ ChannelListAttribute::staticTypeName ()
template <>
void
ChannelListAttribute::writeValueTo (OStream &os, int version) const
ChannelListAttribute::writeValueTo (OStream &os, int) const
{
for (ChannelList::ConstIterator i = _value.begin();
i != _value.end();
@ -105,7 +105,7 @@ ChannelListAttribute::writeValueTo (OStream &os, int version) const
template <>
void
ChannelListAttribute::readValueFrom (IStream &is, int size, int version)
ChannelListAttribute::readValueFrom (IStream &is, int, int)
{
while (true)
{

@ -55,7 +55,7 @@ ChromaticitiesAttribute::staticTypeName ()
template <>
void
ChromaticitiesAttribute::writeValueTo (OStream &os, int version) const
ChromaticitiesAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.red.x);
Xdr::write <StreamIO> (os, _value.red.y);
@ -70,7 +70,7 @@ ChromaticitiesAttribute::writeValueTo (OStream &os, int version) const
template <>
void
ChromaticitiesAttribute::readValueFrom (IStream &is, int size, int version)
ChromaticitiesAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.red.x);
Xdr::read <StreamIO> (is, _value.red.y);

@ -56,7 +56,7 @@ CompressionAttribute::staticTypeName ()
template <>
void
CompressionAttribute::writeValueTo (OStream &os, int version) const
CompressionAttribute::writeValueTo (OStream &os, int) const
{
unsigned char tmp = _value;
Xdr::write <StreamIO> (os, tmp);
@ -65,7 +65,7 @@ CompressionAttribute::writeValueTo (OStream &os, int version) const
template <>
void
CompressionAttribute::readValueFrom (IStream &is, int size, int version)
CompressionAttribute::readValueFrom (IStream &is, int, int)
{
unsigned char tmp;
Xdr::read <StreamIO> (is, tmp);

@ -55,7 +55,7 @@ EnvmapAttribute::staticTypeName ()
template <>
void
EnvmapAttribute::writeValueTo (OStream &os, int version) const
EnvmapAttribute::writeValueTo (OStream &os, int) const
{
unsigned char tmp = _value;
Xdr::write <StreamIO> (os, tmp);
@ -64,7 +64,7 @@ EnvmapAttribute::writeValueTo (OStream &os, int version) const
template <>
void
EnvmapAttribute::readValueFrom (IStream &is, int size, int version)
EnvmapAttribute::readValueFrom (IStream &is, int, int)
{
unsigned char tmp;
Xdr::read <StreamIO> (is, tmp);

@ -65,7 +65,7 @@ IStream::isMemoryMapped () const
char *
IStream::readMemoryMapped (int n)
IStream::readMemoryMapped (int)
{
throw Iex::InputExc ("Attempt to perform a memory-mapped read "
"on a file that is not memory mapped.");

@ -54,7 +54,7 @@ KeyCodeAttribute::staticTypeName ()
template <>
void
KeyCodeAttribute::writeValueTo (OStream &os, int version) const
KeyCodeAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.filmMfcCode());
Xdr::write <StreamIO> (os, _value.filmType());
@ -68,7 +68,7 @@ KeyCodeAttribute::writeValueTo (OStream &os, int version) const
template <>
void
KeyCodeAttribute::readValueFrom (IStream &is, int size, int version)
KeyCodeAttribute::readValueFrom (IStream &is, int, int)
{
int tmp;

@ -57,7 +57,7 @@ LineOrderAttribute::staticTypeName ()
template <>
void
LineOrderAttribute::writeValueTo (OStream &os, int version) const
LineOrderAttribute::writeValueTo (OStream &os, int) const
{
unsigned char tmp = _value;
Xdr::write <StreamIO> (os, tmp);
@ -66,7 +66,7 @@ LineOrderAttribute::writeValueTo (OStream &os, int version) const
template <>
void
LineOrderAttribute::readValueFrom (IStream &is, int size, int version)
LineOrderAttribute::readValueFrom (IStream &is, int, int)
{
unsigned char tmp;
Xdr::read <StreamIO> (is, tmp);

@ -59,7 +59,7 @@ M33fAttribute::staticTypeName ()
template <>
void
M33fAttribute::writeValueTo (OStream &os, int version) const
M33fAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value[0][0]);
Xdr::write <StreamIO> (os, _value[0][1]);
@ -77,7 +77,7 @@ M33fAttribute::writeValueTo (OStream &os, int version) const
template <>
void
M33fAttribute::readValueFrom (IStream &is, int size, int version)
M33fAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value[0][0]);
Xdr::read <StreamIO> (is, _value[0][1]);
@ -103,7 +103,7 @@ M33dAttribute::staticTypeName ()
template <>
void
M33dAttribute::writeValueTo (OStream &os, int version) const
M33dAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value[0][0]);
Xdr::write <StreamIO> (os, _value[0][1]);
@ -121,7 +121,7 @@ M33dAttribute::writeValueTo (OStream &os, int version) const
template <>
void
M33dAttribute::readValueFrom (IStream &is, int size, int version)
M33dAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value[0][0]);
Xdr::read <StreamIO> (is, _value[0][1]);
@ -147,7 +147,7 @@ M44fAttribute::staticTypeName ()
template <>
void
M44fAttribute::writeValueTo (OStream &os, int version) const
M44fAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value[0][0]);
Xdr::write <StreamIO> (os, _value[0][1]);
@ -173,7 +173,7 @@ M44fAttribute::writeValueTo (OStream &os, int version) const
template <>
void
M44fAttribute::readValueFrom (IStream &is, int size, int version)
M44fAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value[0][0]);
Xdr::read <StreamIO> (is, _value[0][1]);
@ -207,7 +207,7 @@ M44dAttribute::staticTypeName ()
template <>
void
M44dAttribute::writeValueTo (OStream &os, int version) const
M44dAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value[0][0]);
Xdr::write <StreamIO> (os, _value[0][1]);
@ -233,7 +233,7 @@ M44dAttribute::writeValueTo (OStream &os, int version) const
template <>
void
M44dAttribute::readValueFrom (IStream &is, int size, int version)
M44dAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value[0][0]);
Xdr::read <StreamIO> (is, _value[0][1]);

@ -87,14 +87,14 @@ OpaqueAttribute::copy () const
void
OpaqueAttribute::writeValueTo (OStream &os, int version) const
OpaqueAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _data, _dataSize);
}
void
OpaqueAttribute::readValueFrom (IStream &is, int size, int version)
OpaqueAttribute::readValueFrom (IStream &is, int size, int)
{
_data.resizeErase (size);
_dataSize = size;

@ -310,7 +310,7 @@ convertToXdr (OutputFile::Data *ofd,
Array<char> &lineBuffer,
int lineBufferMinY,
int lineBufferMaxY,
int inSize)
int /*inSize*/)
{
//
// Convert the contents of a lineBuffer from the machine's native

@ -55,7 +55,7 @@ PreviewImageAttribute::staticTypeName ()
template <>
void
PreviewImageAttribute::writeValueTo (OStream &os, int version) const
PreviewImageAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.width());
Xdr::write <StreamIO> (os, _value.height());
@ -75,7 +75,7 @@ PreviewImageAttribute::writeValueTo (OStream &os, int version) const
template <>
void
PreviewImageAttribute::readValueFrom (IStream &is, int size, int version)
PreviewImageAttribute::readValueFrom (IStream &is, int, int)
{
int width, height;

@ -71,7 +71,7 @@ class Rational
// Constructor, explicitly sets n and d
//-------------------------------------
Rational (int n, int d): n (n), d (d) {}
Rational (int _n, int _d): n (_n), d (_d) {}
//----------------------------

@ -54,7 +54,7 @@ RationalAttribute::staticTypeName ()
template <>
void
RationalAttribute::writeValueTo (OStream &os, int version) const
RationalAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.n);
Xdr::write <StreamIO> (os, _value.d);
@ -63,7 +63,7 @@ RationalAttribute::writeValueTo (OStream &os, int version) const
template <>
void
RationalAttribute::readValueFrom (IStream &is, int size, int version)
RationalAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.n);
Xdr::read <StreamIO> (is, _value.d);

@ -191,7 +191,7 @@ RleCompressor::numScanLines () const
int
RleCompressor::compress (const char *inPtr,
int inSize,
int minY,
int /*minY*/,
const char *&outPtr)
{
//
@ -257,7 +257,7 @@ RleCompressor::compress (const char *inPtr,
int
RleCompressor::uncompress (const char *inPtr,
int inSize,
int minY,
int /*minY*/,
const char *&outPtr)
{
//

@ -56,7 +56,7 @@ StringAttribute::staticTypeName ()
template <>
void
StringAttribute::writeValueTo (OStream &os, int version) const
StringAttribute::writeValueTo (OStream &os, int) const
{
int size = _value.size();
@ -67,7 +67,7 @@ StringAttribute::writeValueTo (OStream &os, int version) const
template <>
void
StringAttribute::readValueFrom (IStream &is, int size, int version)
StringAttribute::readValueFrom (IStream &is, int size, int)
{
_value.resize (size);

@ -55,7 +55,7 @@ StringVectorAttribute::staticTypeName ()
template <>
void
StringVectorAttribute::writeValueTo (OStream &os, int version) const
StringVectorAttribute::writeValueTo (OStream &os, int) const
{
int size = _value.size();
@ -70,7 +70,7 @@ StringVectorAttribute::writeValueTo (OStream &os, int version) const
template <>
void
StringVectorAttribute::readValueFrom (IStream &is, int size, int version)
StringVectorAttribute::readValueFrom (IStream &is, int size, int)
{
int read = 0;

@ -39,6 +39,7 @@
//-----------------------------------------------------------------------------
#include "IlmThreadPool.h"
#include "ImfThreading.h"
namespace Imf {

@ -55,7 +55,7 @@ TileDescriptionAttribute::staticTypeName ()
template <>
void
TileDescriptionAttribute::writeValueTo (OStream &os, int version) const
TileDescriptionAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.xSize);
Xdr::write <StreamIO> (os, _value.ySize);
@ -68,8 +68,8 @@ TileDescriptionAttribute::writeValueTo (OStream &os, int version) const
template <>
void
TileDescriptionAttribute::readValueFrom (IStream &is,
int size,
int version)
int,
int)
{
Xdr::read <StreamIO> (is, _value.xSize);
Xdr::read <StreamIO> (is, _value.ySize);

@ -54,7 +54,7 @@ TimeCodeAttribute::staticTypeName ()
template <>
void
TimeCodeAttribute::writeValueTo (OStream &os, int version) const
TimeCodeAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.timeAndFlags());
Xdr::write <StreamIO> (os, _value.userData());
@ -63,7 +63,7 @@ TimeCodeAttribute::writeValueTo (OStream &os, int version) const
template <>
void
TimeCodeAttribute::readValueFrom (IStream &is, int size, int version)
TimeCodeAttribute::readValueFrom (IStream &is, int, int)
{
unsigned int tmp;

@ -61,7 +61,7 @@ V2iAttribute::staticTypeName ()
template <>
void
V2iAttribute::writeValueTo (OStream &os, int version) const
V2iAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -70,7 +70,7 @@ V2iAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V2iAttribute::readValueFrom (IStream &is, int size, int version)
V2iAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);
@ -87,7 +87,7 @@ V2fAttribute::staticTypeName ()
template <>
void
V2fAttribute::writeValueTo (OStream &os, int version) const
V2fAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -96,7 +96,7 @@ V2fAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V2fAttribute::readValueFrom (IStream &is, int size, int version)
V2fAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);
@ -113,7 +113,7 @@ V2dAttribute::staticTypeName ()
template <>
void
V2dAttribute::writeValueTo (OStream &os, int version) const
V2dAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -122,7 +122,7 @@ V2dAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V2dAttribute::readValueFrom (IStream &is, int size, int version)
V2dAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);
@ -139,7 +139,7 @@ V3iAttribute::staticTypeName ()
template <>
void
V3iAttribute::writeValueTo (OStream &os, int version) const
V3iAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -149,7 +149,7 @@ V3iAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V3iAttribute::readValueFrom (IStream &is, int size, int version)
V3iAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);
@ -167,7 +167,7 @@ V3fAttribute::staticTypeName ()
template <>
void
V3fAttribute::writeValueTo (OStream &os, int version) const
V3fAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -177,7 +177,7 @@ V3fAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V3fAttribute::readValueFrom (IStream &is, int size, int version)
V3fAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);
@ -195,7 +195,7 @@ V3dAttribute::staticTypeName ()
template <>
void
V3dAttribute::writeValueTo (OStream &os, int version) const
V3dAttribute::writeValueTo (OStream &os, int) const
{
Xdr::write <StreamIO> (os, _value.x);
Xdr::write <StreamIO> (os, _value.y);
@ -205,7 +205,7 @@ V3dAttribute::writeValueTo (OStream &os, int version) const
template <>
void
V3dAttribute::readValueFrom (IStream &is, int size, int version)
V3dAttribute::readValueFrom (IStream &is, int, int)
{
Xdr::read <StreamIO> (is, _value.x);
Xdr::read <StreamIO> (is, _value.y);

@ -93,7 +93,7 @@ ZipCompressor::numScanLines () const
int
ZipCompressor::compress (const char *inPtr,
int inSize,
int minY,
int /*minY*/,
const char *&outPtr)
{
//
@ -167,7 +167,7 @@ ZipCompressor::compress (const char *inPtr,
int
ZipCompressor::uncompress (const char *inPtr,
int inSize,
int minY,
int /*minY*/,
const char *&outPtr)
{
//

Loading…
Cancel
Save