summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-18 22:33:45 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-18 22:33:45 +0200
commitfd47806ce4c94eab2513da5b5aab2a8c2be7a218 (patch)
tree25adf43e8aa4b2d1b9c8da165363e1013fb5f3e5
parentaa9d9413884702f23ec96cf42455052c27cf8b90 (diff)
Fix non-debug werror build
-rw-r--r--src/lib/Pict1Parser.cpp14
-rw-r--r--src/lib/Pict2Parser.cpp14
2 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/Pict1Parser.cpp b/src/lib/Pict1Parser.cpp
index 0ad5b24..2661d99 100644
--- a/src/lib/Pict1Parser.cpp
+++ b/src/lib/Pict1Parser.cpp
@@ -611,6 +611,7 @@ void Pict1Parser::handleBitsRgn()
void Pict1Parser::handlePackBitsRect()
{
+#ifdef DEBUG
unsigned short rowBytes = readU16();
PICT_DEBUG_MSG(("Row bytes: %i\n", rowBytes));
unsigned short bounds_top = readU16();
@@ -618,6 +619,12 @@ void Pict1Parser::handlePackBitsRect()
readU16();
unsigned short bounds_bottom = readU16();
PICT_DEBUG_MSG(("Bounds.bottom: %i\n", bounds_bottom));
+#else
+ readU16();
+ readU16();
+ readU16();
+ readU16();
+#endif
readU16();
m_input->seek(18, WPX_SEEK_CUR);
#if 0
@@ -628,6 +635,7 @@ void Pict1Parser::handlePackBitsRect()
void Pict1Parser::handlePackBitsRgn()
{
+#ifdef DEBUG
unsigned short rowBytes = readU16();
PICT_DEBUG_MSG(("Row bytes: %i\n", rowBytes));
unsigned short bounds_top = readU16();
@@ -635,6 +643,12 @@ void Pict1Parser::handlePackBitsRgn()
readU16();
unsigned short bounds_bottom = readU16();
PICT_DEBUG_MSG(("Bounds.bottom: %i\n", bounds_bottom));
+#else
+ readU16();
+ readU16();
+ readU16();
+ readU16();
+#endif
readU16();
m_input->seek(18, WPX_SEEK_CUR);
#if 0
diff --git a/src/lib/Pict2Parser.cpp b/src/lib/Pict2Parser.cpp
index 851eb81..5260484 100644
--- a/src/lib/Pict2Parser.cpp
+++ b/src/lib/Pict2Parser.cpp
@@ -725,6 +725,7 @@ void Pict2Parser::handleBitsRgn()
void Pict2Parser::handlePackBitsRect()
{
+#ifdef DEBUG
unsigned short rowBytes = readU16();
PICT_DEBUG_MSG(("Row bytes: %i\n", rowBytes));
unsigned short bounds_top = readU16();
@@ -732,6 +733,12 @@ void Pict2Parser::handlePackBitsRect()
readU16();
unsigned short bounds_bottom = readU16();
PICT_DEBUG_MSG(("Bounds.bottom: %i\n", bounds_bottom));
+#else
+ readU16();
+ readU16();
+ readU16();
+ readU16();
+#endif
readU16();
m_input->seek(18, WPX_SEEK_CUR);
#if 0
@@ -742,6 +749,7 @@ void Pict2Parser::handlePackBitsRect()
void Pict2Parser::handlePackBitsRgn()
{
+#ifdef DEBUG
unsigned short rowBytes = readU16();
PICT_DEBUG_MSG(("Row bytes: %i\n", rowBytes));
unsigned short bounds_top = readU16();
@@ -749,6 +757,12 @@ void Pict2Parser::handlePackBitsRgn()
readU16();
unsigned short bounds_bottom = readU16();
PICT_DEBUG_MSG(("Bounds.bottom: %i\n", bounds_bottom));
+#else
+ readU16();
+ readU16();
+ readU16();
+ readU16();
+#endif
readU16();
m_input->seek(18, WPX_SEEK_CUR);
#if 0