Merge branch 'windows+cc' into cairocanvas
[ardour.git] / libs / audiographer / audiographer / debuggable.h
index 8fe48159de60a2a7eb5ef0d1e8c6c1a3215a3c2b..1cc1d6f7252440cdf1bf5c53c910211692c21358 100644 (file)
@@ -45,12 +45,12 @@ class /*LIBAUDIOGRAPHER_API*/ Debuggable
                : stream (debug_stream) {}
 
        bool debug_level (DebugLevel level) {
-               #ifdef NDEBUG
-               level = DEFAULT_DEBUG_LEVEL; /* stop pedantic gcc complaints about unused parameter */
+#ifndef NDEBUG
+               (void) level; /* stop pedantic gcc complaints about unused parameter */
                return false;
-               #else
+#else
                return L >= level;
-               #endif
+#endif
        }
        std::ostream & debug_stream() { return stream; }