diff options
author | Hubert Figuière <hub@figuiere.net> | 2017-01-11 19:18:06 -0500 |
---|---|---|
committer | Hubert Figuière <hub@figuiere.net> | 2017-01-11 19:18:06 -0500 |
commit | b446b336d7f67c97098846c0912ad9d8415dec4b (patch) | |
tree | f9198ca08f23c54d81afd07c89f1390635425b9e /XMPFiles/source/FormatSupport | |
parent | 61f0a23ba803c1aca65caf4ae10760598a2ee3a3 (diff) |
Adobe SDK: fix some unused args and variables warnings
Diffstat (limited to 'XMPFiles/source/FormatSupport')
20 files changed, 54 insertions, 55 deletions
diff --git a/XMPFiles/source/FormatSupport/AIFF/AIFFBehavior.cpp b/XMPFiles/source/FormatSupport/AIFF/AIFFBehavior.cpp index a97c2b0..a2d8f8f 100644 --- a/XMPFiles/source/FormatSupport/AIFF/AIFFBehavior.cpp +++ b/XMPFiles/source/FormatSupport/AIFF/AIFFBehavior.cpp @@ -35,7 +35,7 @@ const BigEndian& AIFFBehavior::mEndian = BigEndian::getInstance(); // //----------------------------------------------------------------------------- -XMP_Uns64 AIFFBehavior::getRealSize( const XMP_Uns64 size, const ChunkIdentifier& id, IChunkContainer& tree, XMP_IO* stream ) +XMP_Uns64 AIFFBehavior::getRealSize( const XMP_Uns64 size, const ChunkIdentifier& /*id*/, IChunkContainer& /*tree*/, XMP_IO* /*stream*/ ) { if( (size & 0x80000000) > 0 ) { diff --git a/XMPFiles/source/FormatSupport/AIFF/AIFFMetadata.cpp b/XMPFiles/source/FormatSupport/AIFF/AIFFMetadata.cpp index 8fadba3..816bb05 100644 --- a/XMPFiles/source/FormatSupport/AIFF/AIFFMetadata.cpp +++ b/XMPFiles/source/FormatSupport/AIFF/AIFFMetadata.cpp @@ -38,7 +38,7 @@ AIFFMetadata::~AIFFMetadata() // //----------------------------------------------------------------------------- -bool AIFFMetadata::isEmptyValue( XMP_Uns32 id, ValueObject& valueObj ) +bool AIFFMetadata::isEmptyValue( XMP_Uns32 /*id*/, ValueObject& valueObj ) { TValueObject<std::string>* strObj = dynamic_cast<TValueObject<std::string>*>(&valueObj); diff --git a/XMPFiles/source/FormatSupport/ASF_Support.cpp b/XMPFiles/source/FormatSupport/ASF_Support.cpp index 9202359..c7e2bc1 100644 --- a/XMPFiles/source/FormatSupport/ASF_Support.cpp +++ b/XMPFiles/source/FormatSupport/ASF_Support.cpp @@ -728,7 +728,7 @@ bool ASF_Support::UpdateFileSize ( XMP_IO* fileRef ) // ============================================================================================= -bool ASF_Support::ReadHeaderExtensionObject ( XMP_IO* fileRef, ObjectState& inOutObjectState, const XMP_Uns64& _pos, const ASF_ObjectBase& _objectBase ) +bool ASF_Support::ReadHeaderExtensionObject ( XMP_IO* fileRef, ObjectState& /*inOutObjectState*/, const XMP_Uns64& _pos, const ASF_ObjectBase& _objectBase ) { if ( ! IsEqualGUID ( ASF_Header_Extension_Object, _objectBase.guid) || (! legacyManager ) ) return false; diff --git a/XMPFiles/source/FormatSupport/GIF_Support.cpp b/XMPFiles/source/FormatSupport/GIF_Support.cpp index 4f2ac6c..b155afc 100644 --- a/XMPFiles/source/FormatSupport/GIF_Support.cpp +++ b/XMPFiles/source/FormatSupport/GIF_Support.cpp @@ -68,7 +68,7 @@ namespace GIF_Support long bytesRead; long headerSize; long tableSize = 0; - long bytesPerColor = 0; + /*long bytesPerColor = 0;*/ unsigned char buffer[768]; headerSize = 0; @@ -96,13 +96,13 @@ namespace GIF_Support // ============================================================================================= - bool ReadBlock ( XMP_IO* fileRef, BlockState & inOutBlockState, unsigned char * blockType, XMP_Uns32 * blockLength, XMP_Uns64 & inOutPosition ) + bool ReadBlock ( XMP_IO* fileRef, BlockState & inOutBlockState, unsigned char * /*blockType*/, XMP_Uns32 * /*blockLength*/, XMP_Uns64 & inOutPosition ) { try { XMP_Uns64 startPosition = inOutPosition; long bytesRead; - long blockSize; + /*long blockSize;*/ unsigned char buffer[768]; bytesRead = fileRef->Read ( buffer, 1 ); @@ -287,7 +287,7 @@ namespace GIF_Support { // We still have to go through all of the data... long tableSize = 0; - long xmpSize; + /*long xmpSize;*/ inOutPosition = inOutBlockData.pos + APPLICATION_HEADER_LEN; inOutBlockState.xmpPos = inOutPosition; diff --git a/XMPFiles/source/FormatSupport/ID3_Support.cpp b/XMPFiles/source/FormatSupport/ID3_Support.cpp index 790c299..f9aeefe 100644 --- a/XMPFiles/source/FormatSupport/ID3_Support.cpp +++ b/XMPFiles/source/FormatSupport/ID3_Support.cpp @@ -639,7 +639,7 @@ bool ID3v2Frame::advancePastCOMMDescriptor ( XMP_Int32& pos ) // ================================================================================================= -bool ID3v2Frame::getFrameValue ( XMP_Uns8 majorVersion, XMP_Uns32 logicalID, std::string* utf8string ) +bool ID3v2Frame::getFrameValue ( XMP_Uns8 /*majorVersion*/, XMP_Uns32 logicalID, std::string* utf8string ) { XMP_Assert ( (this->content != 0) && (this->contentSize >= 0) && (this->contentSize < 20*1024*1024) ); diff --git a/XMPFiles/source/FormatSupport/ID3_Support.hpp b/XMPFiles/source/FormatSupport/ID3_Support.hpp index dda6bfc..8b61894 100644 --- a/XMPFiles/source/FormatSupport/ID3_Support.hpp +++ b/XMPFiles/source/FormatSupport/ID3_Support.hpp @@ -111,7 +111,7 @@ namespace ID3_Support { ID3v2Frame(); ID3v2Frame ( XMP_Uns32 id ); - ID3v2Frame ( const ID3v2Frame& orig ) { + ID3v2Frame ( const ID3v2Frame& /*orig*/ ) { XMP_Throw ( "ID3v2Frame copy constructor not implemented", kXMPErr_InternalFailure ); } diff --git a/XMPFiles/source/FormatSupport/IPTC_Support.hpp b/XMPFiles/source/FormatSupport/IPTC_Support.hpp index e81f1e0..b0b697b 100644 --- a/XMPFiles/source/FormatSupport/IPTC_Support.hpp +++ b/XMPFiles/source/FormatSupport/IPTC_Support.hpp @@ -258,9 +258,9 @@ public: IPTC_Reader() {}; - void SetDataSet_UTF8 ( XMP_Uns8 dsNum, const void* utf8Ptr, XMP_Uns32 utf8Len, long which = -1 ) { NotAppropriate(); }; + void SetDataSet_UTF8 ( XMP_Uns8 /*dsNum*/, const void* /*utf8Ptr*/, XMP_Uns32 /*utf8Len*/, long which = -1 ) { IgnoreParam(which); NotAppropriate(); }; - void DeleteDataSet ( XMP_Uns8 dsNum, long which = -1 ) { NotAppropriate(); }; + void DeleteDataSet ( XMP_Uns8 /*dsNum*/, long which = -1 ) { IgnoreParam(which); NotAppropriate(); }; bool IsChanged() { return false; }; diff --git a/XMPFiles/source/FormatSupport/P2_Support.cpp b/XMPFiles/source/FormatSupport/P2_Support.cpp index fc5a334..9e8af88 100644 --- a/XMPFiles/source/FormatSupport/P2_Support.cpp +++ b/XMPFiles/source/FormatSupport/P2_Support.cpp @@ -268,7 +268,7 @@ std::string P2_Clip::GetXMPFilePath() return ClipMetadataPath+ ".XMP"; } -void P2_Clip::CreateDigest ( std::string * digestStr ) +void P2_Clip::CreateDigest ( std::string * /*digestStr*/ ) { return; } diff --git a/XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp b/XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp index 202de06..182926a 100644 --- a/XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp +++ b/XMPFiles/source/FormatSupport/PSIR_FileWriter.cpp @@ -483,7 +483,7 @@ XMP_Uns32 PSIR_FileWriter::UpdateMemoryResources ( void** dataPtr ) // ==================================== XMP_Uns32 PSIR_FileWriter::UpdateFileResources ( XMP_IO* sourceRef, XMP_IO* destRef, - XMP_AbortProc abortProc, void * abortArg, + XMP_AbortProc /*abortProc*/, void * /*abortArg*/, XMP_ProgressTracker* progressTracker ) { const XMP_Uns32 zero32 = 0; diff --git a/XMPFiles/source/FormatSupport/PSIR_Support.hpp b/XMPFiles/source/FormatSupport/PSIR_Support.hpp index bd231b3..f3f9b88 100644 --- a/XMPFiles/source/FormatSupport/PSIR_Support.hpp +++ b/XMPFiles/source/FormatSupport/PSIR_Support.hpp @@ -168,20 +168,20 @@ public: bool GetImgRsrc ( XMP_Uns16 id, ImgRsrcInfo* info ) const; - void SetImgRsrc ( XMP_Uns16 id, const void* dataPtr, XMP_Uns32 length ) { NotAppropriate(); }; + void SetImgRsrc ( XMP_Uns16 /*id*/, const void* /*dataPtr*/, XMP_Uns32 /*length*/ ) { NotAppropriate(); }; - void DeleteImgRsrc ( XMP_Uns16 id ) { NotAppropriate(); }; + void DeleteImgRsrc ( XMP_Uns16 /*id*/ ) { NotAppropriate(); }; bool IsChanged() { return false; }; bool IsLegacyChanged() { return false; }; void ParseMemoryResources ( const void* data, XMP_Uns32 length, bool copyData = true ); - void ParseFileResources ( XMP_IO* file, XMP_Uns32 length ) { NotAppropriate(); }; + void ParseFileResources ( XMP_IO* /*file*/, XMP_Uns32 /*length*/ ) { NotAppropriate(); }; XMP_Uns32 UpdateMemoryResources ( void** dataPtr ) { if ( dataPtr != 0 ) *dataPtr = psirContent; return psirLength; }; - XMP_Uns32 UpdateFileResources ( XMP_IO* sourceRef, XMP_IO* destRef, - XMP_AbortProc abortProc, void * abortArg, - XMP_ProgressTracker* progressTracker ) { NotAppropriate(); return 0; }; + XMP_Uns32 UpdateFileResources ( XMP_IO* /*sourceRef*/, XMP_IO* /*destRef*/, + XMP_AbortProc /*abortProc*/, void * /*abortArg*/, + XMP_ProgressTracker* /*progressTracker*/ ) { NotAppropriate(); return 0; }; PSIR_MemoryReader() : ownedContent(false), psirLength(0), psirContent(0) {}; diff --git a/XMPFiles/source/FormatSupport/RIFF.cpp b/XMPFiles/source/FormatSupport/RIFF.cpp index 6930190..587bb8d 100644 --- a/XMPFiles/source/FormatSupport/RIFF.cpp +++ b/XMPFiles/source/FormatSupport/RIFF.cpp @@ -203,7 +203,7 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun } } -void Chunk::changesAndSize( RIFF_MetaHandler* handler ) +void Chunk::changesAndSize( RIFF_MetaHandler* /*handler*/ ) { // only unknown chunks should reach this method, // all others must reach overloads, hence little to do here: @@ -211,7 +211,7 @@ void Chunk::changesAndSize( RIFF_MetaHandler* handler ) this->newSize = this->oldSize; } -std::string Chunk::toString(XMP_Uns8 level ) +std::string Chunk::toString(XMP_Uns8 /*level*/) { char buffer[256]; snprintf( buffer, 255, "%.4s -- " @@ -222,7 +222,7 @@ std::string Chunk::toString(XMP_Uns8 level ) return std::string(buffer); } -void Chunk::write( RIFF_MetaHandler* handler, XMP_IO* file , bool isMainChunk ) +void Chunk::write( RIFF_MetaHandler* /*handler*/, XMP_IO* /*file*/, bool /*isMainChunk*/ ) { throw new XMP_Error(kXMPErr_InternalFailure, "Chunk::write never to be called for unknown chunks."); } @@ -696,7 +696,7 @@ XMPChunk::XMPChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chunk( { chunkType = chunk_XMP; XMP_IO* file = handler->parent->ioRef; - XMP_Uns8 level = handler->level; + /*XMP_Uns8 level = handler->level*/; handler->packetInfo.offset = this->oldPos + 8; handler->packetInfo.length = (XMP_Int32) this->oldSize - 8; @@ -723,7 +723,7 @@ void XMPChunk::changesAndSize( RIFF_MetaHandler* handler ) this->hasChange = true; } -void XMPChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) +void XMPChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool /*isMainChunk*/ ) { XIO::WriteUns32_LE( file, kChunk_XMP ); XIO::WriteUns32_LE( file, (XMP_Uns32) this->newSize - 8 ); // validated in changesAndSize() above @@ -743,7 +743,7 @@ ValueChunk::ValueChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Ch { // set value: ----------------- XMP_IO* file = handler->parent->ioRef; - XMP_Uns8 level = handler->level; + /*XMP_Uns8 level = handler->level;*/ // unless changed through reconciliation, assume for now. // IMPORTANT to stay true to the original (no \0 cleanup or similar) @@ -769,7 +769,7 @@ void ValueChunk::SetValue( std::string value, bool optionalNUL /* = false */ ) this->newSize = this->newValue.size() + 8; } -void ValueChunk::changesAndSize( RIFF_MetaHandler* handler ) +void ValueChunk::changesAndSize( RIFF_MetaHandler* /*handler*/ ) { // Don't simply assign to this->hasChange, it might already be true. if ( this->newValue.size() != this->oldValue.size() ) { @@ -779,7 +779,7 @@ void ValueChunk::changesAndSize( RIFF_MetaHandler* handler ) } } -void ValueChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) +void ValueChunk::write( RIFF_MetaHandler* /*handler*/, XMP_IO* file, bool /*isMainChunk*/ ) { XIO::WriteUns32_LE( file, this->id ); XIO::WriteUns32_LE( file, (XMP_Uns32)this->newSize - 8 ); @@ -859,7 +859,7 @@ JunkChunk::JunkChunk( ContainerChunk* parent, RIFF_MetaHandler* handler ) : Chun chunkType = chunk_JUNK; } -void JunkChunk::changesAndSize( RIFF_MetaHandler* handler ) +void JunkChunk::changesAndSize( RIFF_MetaHandler* /*handler*/ ) { this->newSize = this->oldSize; // optimization at a later stage XMP_Validate( this->newSize <= 0xFFFFFFFFLL, "no single chunk may be above 4 GB", kXMPErr_InternalFailure ); @@ -870,7 +870,7 @@ void JunkChunk::changesAndSize( RIFF_MetaHandler* handler ) const static XMP_Uns32 kZeroBufferSize64K = 64 * 1024; static XMP_Uns8 kZeroes64K [ kZeroBufferSize64K ]; // C semantics guarantee zero initialization. -void JunkChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) +void JunkChunk::write( RIFF_MetaHandler* /*handler*/, XMP_IO* file, bool /*isMainChunk*/ ) { XIO::WriteUns32_LE( file, kChunk_JUNK ); // write JUNK, never JUNQ XMP_Enforce( this->newSize < 0xFFFFFFFF ); diff --git a/XMPFiles/source/FormatSupport/ReconcileLegacy.cpp b/XMPFiles/source/FormatSupport/ReconcileLegacy.cpp index 4e8809d..7d1c830 100644 --- a/XMPFiles/source/FormatSupport/ReconcileLegacy.cpp +++ b/XMPFiles/source/FormatSupport/ReconcileLegacy.cpp @@ -107,7 +107,7 @@ void ExportPhotoData ( XMP_FileFormat destFormat, TIFF_Manager * exif, // Pass 0 if not wanted. IPTC_Manager * iptc, // Pass 0 if not wanted. PSIR_Manager * psir, // Pass 0 if not wanted. - XMP_OptionBits options /* = 0 */ ) + XMP_OptionBits /* options = 0 */ ) { XMP_Assert ( (destFormat == kXMP_JPEGFile) || (destFormat == kXMP_TIFFFile) || (destFormat == kXMP_PhotoshopFile) ); diff --git a/XMPFiles/source/FormatSupport/ReconcileTIFF.cpp b/XMPFiles/source/FormatSupport/ReconcileTIFF.cpp index 9757200..5eaf4bf 100644 --- a/XMPFiles/source/FormatSupport/ReconcileTIFF.cpp +++ b/XMPFiles/source/FormatSupport/ReconcileTIFF.cpp @@ -302,7 +302,7 @@ bool PhotoDataUtils::GetNativeInfo ( const TIFF_Manager & exif, XMP_Uns8 ifd, XM // ================================================================================================= -size_t PhotoDataUtils::GetNativeInfo ( const IPTC_Manager & iptc, XMP_Uns8 id, int digestState, bool haveXMP, IPTC_Manager::DataSetInfo * info ) +size_t PhotoDataUtils::GetNativeInfo ( const IPTC_Manager & iptc, XMP_Uns8 id, int /*digestState*/, bool /*haveXMP*/, IPTC_Manager::DataSetInfo * info ) { size_t iptcCount = 0; @@ -1421,7 +1421,7 @@ ImportTIFF_EncodedString ( const TIFF_Manager & tiff, const TIFF_Manager::TagInf static void ImportTIFF_Flash ( const TIFF_Manager::TagInfo & tagInfo, bool nativeEndian, - SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) + SXMPMeta * xmp, const char * /*xmpNS*/, const char * /*xmpProp*/ ) { try { // Don't let errors with one stop the others. @@ -1994,7 +1994,7 @@ static void ImportTIFF_PhotographicSensitivity ( const TIFF_Manager & exif, SXMP // These are always imported for the tiff: and exif: namespaces, but not for others. void -PhotoDataUtils::Import2WayExif ( const TIFF_Manager & exif, SXMPMeta * xmp, int iptcDigestState ) +PhotoDataUtils::Import2WayExif ( const TIFF_Manager & exif, SXMPMeta * xmp, int /*iptcDigestState*/ ) { const bool nativeEndian = exif.IsNativeEndian(); @@ -2254,7 +2254,7 @@ PhotoDataUtils::Import2WayExif ( const TIFF_Manager & exif, SXMPMeta * xmp, int // ================== static void Import3WayDateTime ( XMP_Uns16 exifTag, const TIFF_Manager & exif, const IPTC_Manager & iptc, - SXMPMeta * xmp, int iptcDigestState, const IPTC_Manager & oldIPTC ) + SXMPMeta * xmp, int iptcDigestState, const IPTC_Manager & /*oldIPTC*/ ) { XMP_Uns8 iptcDS; XMP_StringPtr xmpNS, xmpProp; @@ -2450,7 +2450,7 @@ static bool DecodeRational ( const char * ratio, XMP_Uns32 * num, XMP_Uns32 * de static void ExportSingleTIFF ( TIFF_Manager * tiff, XMP_Uns8 ifd, const TIFF_MappingToXMP & mapInfo, - bool nativeEndian, const std::string & xmpValue ) + bool /*nativeEndian*/, const std::string & xmpValue ) { XMP_Assert ( (mapInfo.count == 1) || (mapInfo.type == kTIFF_ASCIIType) ); XMP_Assert ( mapInfo.name[0] != 0 ); // Must be a standard mapping. diff --git a/XMPFiles/source/FormatSupport/SVG_Adapter.cpp b/XMPFiles/source/FormatSupport/SVG_Adapter.cpp index a35fc20..fb7ebb6 100644 --- a/XMPFiles/source/FormatSupport/SVG_Adapter.cpp +++ b/XMPFiles/source/FormatSupport/SVG_Adapter.cpp @@ -273,7 +273,7 @@ static void EndNamespaceDeclHandler( void * userData, XMP_StringPtr prefix ) // ================================================================================================= -static void StartElementHandler( void * userData, XMP_StringPtr name, XMP_StringPtr* attrs ) +static void StartElementHandler( void * userData, XMP_StringPtr name, XMP_StringPtr* /*attrs*/ ) { // In case, if name is NULL then ParseBuffer would return with error status SVG_Adapter * thiz = ( SVG_Adapter* ) userData; @@ -429,7 +429,7 @@ static void ProcessingInstructionHandler( void * userData, XMP_StringPtr target, // ================================================================================================= -static void DeclarationHandler( void *userData, const XML_Char *version, const XML_Char *encoding, int standalone ) +static void DeclarationHandler( void *userData, const XML_Char * /*version*/, const XML_Char *encoding, int /*standalone*/ ) { if ( encoding == NULL || strlen( encoding ) != 5 || ( tolower( encoding[ 0 ] ) == 'u' @@ -448,11 +448,10 @@ static void DeclarationHandler( void *userData, const XML_Char *version, const // ================================================================================================= #if BanAllEntityUsage -static void StartDoctypeDeclHandler( void * userData, XMP_StringPtr doctypeName, - XMP_StringPtr sysid, XMP_StringPtr pubid, int has_internal_subset ) +static void StartDoctypeDeclHandler( void * userData, XMP_StringPtr /*doctypeName*/, + XMP_StringPtr /*sysid*/, XMP_StringPtr /*pubid*/, + int /*has_internal_subset*/ ) { - IgnoreParam( userData ); - SVG_Adapter * thiz = ( SVG_Adapter* ) userData; thiz->isAborted = true; // ! Can't throw an exception across the plain C Expat frames. diff --git a/XMPFiles/source/FormatSupport/TIFF_FileWriter.cpp b/XMPFiles/source/FormatSupport/TIFF_FileWriter.cpp index a646393..91f79e0 100644 --- a/XMPFiles/source/FormatSupport/TIFF_FileWriter.cpp +++ b/XMPFiles/source/FormatSupport/TIFF_FileWriter.cpp @@ -92,7 +92,7 @@ void TIFF_FileWriter::DeleteExistingInfo() // TIFF_FileWriter::PickIFD // ======================== -XMP_Uns8 TIFF_FileWriter::PickIFD ( XMP_Uns8 ifd, XMP_Uns16 id ) +XMP_Uns8 TIFF_FileWriter::PickIFD ( XMP_Uns8 ifd, XMP_Uns16 /*id*/ ) { if ( ifd > kTIFF_LastRealIFD ) { if ( ifd != kTIFF_KnownIFD ) XMP_Throw ( "Invalid IFD number", kXMPErr_BadParam ); @@ -571,7 +571,7 @@ bool TIFF_FileWriter::IsLegacyChanged() // TIFF_FileWriter::ParseMemoryStream // ================================== -void TIFF_FileWriter::ParseMemoryStream ( const void* data, XMP_Uns32 length, bool copyData /* = true */, bool isAlreadyLittle /*= false */ ) +void TIFF_FileWriter::ParseMemoryStream ( const void* data, XMP_Uns32 length, bool copyData /* = true */, bool /* isAlreadyLittle = false */ ) { this->DeleteExistingInfo(); this->memParsed = true; @@ -1037,7 +1037,7 @@ static bool FlipCFATable ( void* voidPtr, XMP_Uns32 tagLen, GetUns16_Proc GetUns // ! The Exif 2.2 description is a bit garbled. It might be wrong. It would be nice to have a real example. -static bool FlipDSDTable ( void* voidPtr, XMP_Uns32 tagLen, GetUns16_Proc GetUns16 ) +static bool FlipDSDTable ( void* voidPtr, XMP_Uns32 tagLen, GetUns16_Proc /*GetUns16*/ ) { if ( tagLen < 4 ) return false; diff --git a/XMPFiles/source/FormatSupport/TIFF_Support.hpp b/XMPFiles/source/FormatSupport/TIFF_Support.hpp index 5ed5965..3914809 100644 --- a/XMPFiles/source/FormatSupport/TIFF_Support.hpp +++ b/XMPFiles/source/FormatSupport/TIFF_Support.hpp @@ -708,9 +708,9 @@ public: bool GetTag ( XMP_Uns8 ifd, XMP_Uns16 id, TagInfo* info ) const; - void SetTag ( XMP_Uns8 ifd, XMP_Uns16 id, XMP_Uns16 type, XMP_Uns32 count, const void* dataPtr ) { NotAppropriate(); }; + void SetTag ( XMP_Uns8 /*ifd*/, XMP_Uns16 /*id*/, XMP_Uns16 /*type*/, XMP_Uns32 /*count*/, const void* /*dataPtr*/ ) { NotAppropriate(); }; - void DeleteTag ( XMP_Uns8 ifd, XMP_Uns16 id ) { NotAppropriate(); }; + void DeleteTag ( XMP_Uns8 /*ifd*/, XMP_Uns16 /*id*/ ) { NotAppropriate(); }; XMP_Uns32 GetValueOffset ( XMP_Uns8 ifd, XMP_Uns16 id ) const; @@ -733,19 +733,19 @@ public: bool GetTag_EncodedString ( XMP_Uns8 ifd, XMP_Uns16 id, std::string* utf8Str ) const; - void SetTag_EncodedString ( XMP_Uns8 ifd, XMP_Uns16 id, const std::string& utf8Str, XMP_Uns8 encoding ) { NotAppropriate(); }; + void SetTag_EncodedString ( XMP_Uns8 /*ifd*/, XMP_Uns16 /*id*/, const std::string& /*utf8Str*/, XMP_Uns8 /*encoding*/ ) { NotAppropriate(); }; bool IsChanged() { return false; }; bool IsLegacyChanged() { return false; }; // isAlredyLittle is provided for case when data contain no information about Endianess, So need not to check for header void ParseMemoryStream ( const void* data, XMP_Uns32 length, bool copyData = true, bool isAlreadyLittle = false ); - void ParseFileStream ( XMP_IO* fileRef ) { NotAppropriate(); }; + void ParseFileStream ( XMP_IO* /*fileRef*/ ) { NotAppropriate(); }; - void IntegrateFromPShop6 ( const void * buriedPtr, size_t buriedLen ) { NotAppropriate(); }; + void IntegrateFromPShop6 ( const void * /*buriedPtr*/, size_t /*buriedLen*/ ) { NotAppropriate(); }; - XMP_Uns32 UpdateMemoryStream ( void** dataPtr, bool condenseStream = false ) { if ( dataPtr != 0 ) *dataPtr = tiffStream; return tiffLength; }; - void UpdateFileStream ( XMP_IO* fileRef, XMP_ProgressTracker* progressTracker ) { NotAppropriate(); }; + XMP_Uns32 UpdateMemoryStream ( void** dataPtr, bool condenseStream = false ) { IgnoreParam(condenseStream); if ( dataPtr != 0 ) *dataPtr = tiffStream; return tiffLength; }; + void UpdateFileStream ( XMP_IO* /*fileRef*/, XMP_ProgressTracker* /*progressTracker*/ ) { NotAppropriate(); }; TIFF_MemoryReader() : ownedStream(false), tiffStream(0), tiffLength(0) {}; diff --git a/XMPFiles/source/FormatSupport/WAVE/BEXTMetadata.cpp b/XMPFiles/source/FormatSupport/WAVE/BEXTMetadata.cpp index 5b98ba0..ecf7716 100644 --- a/XMPFiles/source/FormatSupport/WAVE/BEXTMetadata.cpp +++ b/XMPFiles/source/FormatSupport/WAVE/BEXTMetadata.cpp @@ -340,7 +340,7 @@ bool BEXTMetadata::isEmptyValue( XMP_Uns32 id, ValueObject& valueObj ) if( obj != NULL ) { XMP_Uns32 size = 0; - const XMP_Uns8* const buffer = obj->getArray( size ); + /*const XMP_Uns8* const buffer =*/ obj->getArray( size ); ret = ( size == 0 ); } diff --git a/XMPFiles/source/FormatSupport/WAVE/DISPMetadata.cpp b/XMPFiles/source/FormatSupport/WAVE/DISPMetadata.cpp index 9e821ef..6ef70bd 100644 --- a/XMPFiles/source/FormatSupport/WAVE/DISPMetadata.cpp +++ b/XMPFiles/source/FormatSupport/WAVE/DISPMetadata.cpp @@ -130,7 +130,7 @@ XMP_Uns64 DISPMetadata::serialize( XMP_Uns8** outBuffer ) // //----------------------------------------------------------------------------- -bool DISPMetadata::isEmptyValue( XMP_Uns32 id, ValueObject& valueObj ) +bool DISPMetadata::isEmptyValue( XMP_Uns32 /*id*/, ValueObject& valueObj ) { TValueObject<std::string>* strObj = dynamic_cast<TValueObject<std::string>*>(&valueObj); diff --git a/XMPFiles/source/FormatSupport/WAVE/INFOMetadata.cpp b/XMPFiles/source/FormatSupport/WAVE/INFOMetadata.cpp index 9bdeb94..6bea3d3 100644 --- a/XMPFiles/source/FormatSupport/WAVE/INFOMetadata.cpp +++ b/XMPFiles/source/FormatSupport/WAVE/INFOMetadata.cpp @@ -256,7 +256,7 @@ XMP_Uns64 INFOMetadata::serialize( XMP_Uns8** outBuffer ) // //----------------------------------------------------------------------------- -bool INFOMetadata::isEmptyValue( XMP_Uns32 id, ValueObject& valueObj ) +bool INFOMetadata::isEmptyValue( XMP_Uns32 /*id*/, ValueObject& valueObj ) { TValueObject<std::string>* strObj = dynamic_cast<TValueObject<std::string>*>(&valueObj); diff --git a/XMPFiles/source/FormatSupport/WAVE/iXMLMetadata.cpp b/XMPFiles/source/FormatSupport/WAVE/iXMLMetadata.cpp index 8e559a1..cd4240b 100644 --- a/XMPFiles/source/FormatSupport/WAVE/iXMLMetadata.cpp +++ b/XMPFiles/source/FormatSupport/WAVE/iXMLMetadata.cpp @@ -981,7 +981,7 @@ namespace IFF_RIFF { return false; } - bool iXMLMetadata::validateTrackListInfo( ValueObject * value ) { + bool iXMLMetadata::validateTrackListInfo( ValueObject * /*value*/ ) { return true; } |