Skip to content

Commit

Permalink
Fix warning - extra ';' for -Wextra-semi (#3198)
Browse files Browse the repository at this point in the history
Signed-off-by: hydai <[email protected]>
  • Loading branch information
hydai authored Sep 23, 2024
1 parent 2c76e61 commit e593f66
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bench/async_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,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();
Expand Down
4 changes: 2 additions & 2 deletions bench/bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,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();
Expand Down Expand Up @@ -243,4 +243,4 @@ odio. Maecenas malesuada quam ex, posuere congue nibh turpis duis.";
delta_d));
}
*/
*/
2 changes: 1 addition & 1 deletion example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,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
Expand Down
2 changes: 1 addition & 1 deletion include/spdlog/sinks/callback_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class callback_sink final : public base_sink<Mutex> {

protected:
void sink_it_(const details::log_msg &msg) override { callback_(msg); }
void flush_() override{};
void flush_() override{}

private:
custom_log_callback callback_;
Expand Down
2 changes: 1 addition & 1 deletion include/spdlog/sinks/msvc_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class msvc_sink : 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 {
Expand Down

0 comments on commit e593f66

Please sign in to comment.