diff --git a/include/musicbrainz5/Entity.h b/include/musicbrainz5/Entity.h
index fca7a14..0f92d55 100644
--- a/include/musicbrainz5/Entity.h
+++ b/include/musicbrainz5/Entity.h
@@ -76,10 +76,12 @@ namespace MusicBrainz5
os >> RetVal;
if (os.fail())
{
+#ifdef _MB5_DEBUG_
std::cerr << "Error parsing value '";
if (Node.getText())
std::cerr << Node.getText();
std::cerr << "'" << std::endl;
+#endif
}
}
@@ -92,7 +94,9 @@ namespace MusicBrainz5
os >> RetVal;
if (os.fail())
{
+#ifdef _MB5_DEBUG_
std::cerr << "Error parsing value '" << Text << "'" << std::endl;
+#endif
}
}
diff --git a/include/musicbrainz5/Entity.h.silence-warnings b/include/musicbrainz5/Entity.h.silence-warnings
new file mode 100644
index 0000000..fca7a14
--- /dev/null
+++ b/include/musicbrainz5/Entity.h.silence-warnings
@@ -0,0 +1,117 @@
+/* --------------------------------------------------------------------------
+
+ libmusicbrainz5 - Client library to access MusicBrainz
+
+ Copyright (C) 2012 Andrew Hawkins
+
+ This file is part of libmusicbrainz5.
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ libmusicbrainz5 is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this library. If not, see .
+
+ $Id$
+
+----------------------------------------------------------------------------*/
+
+#ifndef _MUSICBRAINZ5_ENTITY_H
+#define _MUSICBRAINZ5_ENTITY_H
+
+#include
+#include
+#include
+#include