diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:32:41 -0500 |
commit | 0cca2724311b8df9989dc46efad12bdbe05c3883 (patch) | |
tree | 263a41299101aa9de989192de2d62e113725d494 /libs/audiographer/audiographer | |
parent | 342237bf9c71927b5b6017c527a2d54b5c8be250 (diff) |
try to fix various warnings from gcc when optimization flags are enabled
Diffstat (limited to 'libs/audiographer/audiographer')
-rw-r--r-- | libs/audiographer/audiographer/debuggable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/audiographer/audiographer/debuggable.h b/libs/audiographer/audiographer/debuggable.h index 79e0f80dd3..7835849f27 100644 --- a/libs/audiographer/audiographer/debuggable.h +++ b/libs/audiographer/audiographer/debuggable.h @@ -43,12 +43,12 @@ class 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; } |