Remove use of non-standard zero variadic macros

These are a gnu extension warned against by: gnu-zero-variadic-macro-arguments
This commit is contained in:
Ben Woosley
2020-02-07 16:29:07 +00:00
committed by fanquake
parent 49f6178c3e
commit 3a0fd7726b
2 changed files with 9 additions and 9 deletions

View File

@@ -93,10 +93,10 @@ private:
} // namespace BCLog
#define LOG_TIME_MILLIS(end_msg, ...) \
BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
#define LOG_TIME_SECONDS(end_msg, ...) \
BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, ## __VA_ARGS__)
#define LOG_TIME_MILLIS_WITH_CATEGORY(end_msg, log_category) \
BCLog::Timer<std::chrono::milliseconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg, log_category)
#define LOG_TIME_SECONDS(end_msg) \
BCLog::Timer<std::chrono::seconds> PASTE2(logging_timer, __COUNTER__)(__func__, end_msg)
#endif // BITCOIN_LOGGING_TIMER_H