Cleanup unused variable warnings

v0.27.3
Luis Diaz Mas 7 years ago committed by Luis Díaz Más
parent 6e244f31d3
commit 00f86a8df4

@ -40,6 +40,7 @@
#include "jpgimage.hpp" #include "jpgimage.hpp"
#include "tiffimage.hpp" #include "tiffimage.hpp"
#include "tiffimage_int.hpp" #include "tiffimage_int.hpp"
#include "unused.h"
// ***************************************************************************** // *****************************************************************************
namespace { namespace {
@ -525,7 +526,7 @@ namespace {
: Loader(id, image) : Loader(id, image)
{ {
offset_ = 0; offset_ = 0;
const ExifData &exifData = image_.exifData(); const ExifData &exifData = image_.exifData();
ExifData::const_iterator pos = exifData.findKey(ExifKey(param_[parIdx].offsetKey_)); ExifData::const_iterator pos = exifData.findKey(ExifKey(param_[parIdx].offsetKey_));
if (pos != exifData.end() && pos->count() > 0) { if (pos != exifData.end() && pos->count() > 0) {
offset_ = pos->toLong(); offset_ = pos->toLong();
@ -1038,7 +1039,8 @@ namespace Exiv2 {
{ {
pData_ = data.pData_; pData_ = data.pData_;
size_ = data.size_; size_ = data.size_;
data.release(); std::pair<byte*, long> ret = data.release();
UNUSED(ret);
} }
PreviewImage::~PreviewImage() PreviewImage::~PreviewImage()

@ -28,6 +28,7 @@
// included header files // included header files
#include "types.hpp" #include "types.hpp"
#include "i18n.h" // for _exvGettext #include "i18n.h" // for _exvGettext
#include "unused.h"
// + standard includes // + standard includes
#ifdef EXV_UNICODE_PATH #ifdef EXV_UNICODE_PATH
@ -124,7 +125,8 @@ namespace Exiv2 {
DataBuf::DataBuf(DataBuf& rhs) DataBuf::DataBuf(DataBuf& rhs)
: pData_(rhs.pData_), size_(rhs.size_) : pData_(rhs.pData_), size_(rhs.size_)
{ {
rhs.release(); std::pair<byte*, long> ret = rhs.release();
UNUSED(ret);
} }
DataBuf::DataBuf(const byte* pData, long size) DataBuf::DataBuf(const byte* pData, long size)

Loading…
Cancel
Save