summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-04 03:07:27 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-04 03:07:47 -0500
commitc9730d781c33e5cbece892f78008e379cfabe2e2 (patch)
tree1b5128f1ac5b0647fa9e9e55afa5195c97efc101 /src/utils.h
parent67aadeb80894d7683f5e2e1b2bf29520eb42da41 (diff)
downloadfork-ledger-c9730d781c33e5cbece892f78008e379cfabe2e2.tar.gz
fork-ledger-c9730d781c33e5cbece892f78008e379cfabe2e2.tar.bz2
fork-ledger-c9730d781c33e5cbece892f78008e379cfabe2e2.zip
Fixed compiler warnings when building with Clang
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.h b/src/utils.h
index a228d166..002306d0 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -305,7 +305,7 @@ extern log_level_t _log_level;
extern std::ostream * _log_stream;
extern std::ostringstream _log_buffer;
-bool logger_func(log_level_t level);
+void logger_func(log_level_t level);
#define LOGGER(cat) \
static const char * const _this_category = cat
@@ -319,7 +319,7 @@ extern uint8_t _trace_level;
#define TRACE(lvl, msg) \
(SHOW_TRACE(lvl) ? \
((ledger::_log_buffer << msg), \
- ledger::logger_func(ledger::LOG_TRACE)) : false)
+ ledger::logger_func(ledger::LOG_TRACE)) : (void)0)
#else // TRACING_ON
@@ -343,7 +343,7 @@ inline bool category_matches(const char * cat) {
#define DEBUG(cat, msg) \
(SHOW_DEBUG(cat) ? \
((ledger::_log_buffer << msg), \
- ledger::logger_func(ledger::LOG_DEBUG)) : false)
+ ledger::logger_func(ledger::LOG_DEBUG)) : (void)0)
#define DEBUG_(msg) DEBUG(_this_category, msg)
#else // DEBUG_ON
@@ -357,7 +357,7 @@ inline bool category_matches(const char * cat) {
#define LOG_MACRO(level, msg) \
(ledger::_log_level >= level ? \
- ((ledger::_log_buffer << msg), ledger::logger_func(level)) : false)
+ ((ledger::_log_buffer << msg), ledger::logger_func(level)) : (void)0)
#define SHOW_INFO() (ledger::_log_level >= ledger::LOG_INFO)
#define SHOW_WARN() (ledger::_log_level >= ledger::LOG_WARN)