fixed typos to build with ./configure "CXXFLAGS=-DDEBUG -ggdb"

This commit is contained in:
Robin Mills 2012-07-10 04:45:42 +00:00
parent 4374104ca4
commit bdbdbf2360
3 changed files with 6 additions and 3 deletions

View File

@ -828,7 +828,7 @@ namespace Exiv2 {
append(blob, mio2.mmap(), mio2.size());
#ifdef DEBUG
if (wm == wmIntrusive) {
std::cerr << "SIZE OF EXIF DATA IS " << std::dec << io.size() << " BYTES\n";
std::cerr << "SIZE OF EXIF DATA IS " << std::dec << mio2.size() << " BYTES\n";
}
else {
std::cerr << "SIZE DOESN'T MATTER, NON-INTRUSIVE WRITING USED\n";

View File

@ -2171,7 +2171,7 @@ namespace Exiv2 {
return true;
}
#ifdef DEBUG
std::cerr << "Not an image tag: " << key << " (4)\n";
std::cerr << "Not an image tag: " << tag << " (4)\n";
#endif
return false;
}

View File

@ -96,7 +96,10 @@
#if defined ( DEBUG )
#if defined ( NDEBUG )
#error "XMP environment error - both DEBUG and NDEBUG are defined"
#undef NDEBUG
#warning
#warning "XMP environment - DEBUG and NDEBUG defined. NDEBUG has been undefined"
#warning
#endif
#define XMP_DebugBuild 1
#endif