mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Fix warning - extra ';' for -Wextra-semi (#3198)
Signed-off-by: hydai <z54981220@gmail.com>
This commit is contained in:
parent
eab1f6d5f5
commit
e4d81a5be9
@ -146,7 +146,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> logger, int thread_co
|
||||
|
||||
for (auto &t : threads) {
|
||||
t.join();
|
||||
};
|
||||
}
|
||||
|
||||
auto delta = high_resolution_clock::now() - start;
|
||||
auto delta_d = duration_cast<duration<double>>(delta).count();
|
||||
|
@ -144,7 +144,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_co
|
||||
|
||||
for (auto &t : threads) {
|
||||
t.join();
|
||||
};
|
||||
}
|
||||
|
||||
auto delta = high_resolution_clock::now() - start;
|
||||
auto delta_d = duration_cast<duration<double>>(delta).count();
|
||||
|
@ -252,7 +252,7 @@ void multi_sink_example() {
|
||||
struct my_type {
|
||||
int i = 0;
|
||||
explicit my_type(int i)
|
||||
: i(i){};
|
||||
: i(i){}
|
||||
};
|
||||
|
||||
#ifndef SPDLOG_USE_STD_FORMAT // when using fmtlib
|
||||
|
@ -27,7 +27,7 @@ public:
|
||||
|
||||
protected:
|
||||
void sink_it_(const details::log_msg &msg) override { callback_(msg); }
|
||||
void flush_() override {};
|
||||
void flush_() override{}
|
||||
|
||||
private:
|
||||
custom_log_callback callback_;
|
||||
|
@ -22,7 +22,7 @@ class msvc_sink final : public base_sink<Mutex> {
|
||||
public:
|
||||
msvc_sink() = default;
|
||||
msvc_sink(bool check_debugger_present)
|
||||
: check_debugger_present_{check_debugger_present} {};
|
||||
: check_debugger_present_{check_debugger_present} {}
|
||||
|
||||
protected:
|
||||
void sink_it_(const details::log_msg &msg) override {
|
||||
|
Loading…
Reference in New Issue
Block a user