Hi,
kdebug.cpp should respect its header concerning KDebug::Block when the
KDE_NO_DEBUG_OUTPUT directive is defined.
Regards,
--
Fabrice Ménard
diff --git a/kdecore/io/kdebug.cpp b/kdecore/io/kdebug.cpp
index 62b7ee9..8100533 100644
--- a/kdecore/io/kdebug.cpp
+++ b/kdecore/io/kdebug.cpp
@@ -870,6 +870,8 @@ int KDebug::registerArea(const QByteArray& areaName, bool enabled)
return areaNumber;
}
+#ifndef KDE_NO_DEBUG_OUTPUT
+
KDebug::Block::Block(const char* label, int area)
: m_label(label), m_area(area), d(0)
{
@@ -909,3 +911,4 @@ KDebug::Block::~Block()
}
}
}
+#endif