Skip to content

Commit e593f66

Browse files
authored
Fix warning - extra ';' for -Wextra-semi (#3198)
Signed-off-by: hydai <[email protected]>
1 parent 2c76e61 commit e593f66

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: bench/async_bench.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> logger, int thread_co
160160

161161
for (auto &t : threads) {
162162
t.join();
163-
};
163+
}
164164

165165
auto delta = high_resolution_clock::now() - start;
166166
auto delta_d = duration_cast<duration<double>>(delta).count();

Diff for: bench/bench.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_co
181181

182182
for (auto &t : threads) {
183183
t.join();
184-
};
184+
}
185185

186186
auto delta = high_resolution_clock::now() - start;
187187
auto delta_d = duration_cast<duration<double>>(delta).count();
@@ -243,4 +243,4 @@ odio. Maecenas malesuada quam ex, posuere congue nibh turpis duis.";
243243
delta_d));
244244
}
245245
246-
*/
246+
*/

Diff for: example/example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void multi_sink_example() {
266266
struct my_type {
267267
int i = 0;
268268
explicit my_type(int i)
269-
: i(i){};
269+
: i(i){}
270270
};
271271

272272
#ifndef SPDLOG_USE_STD_FORMAT // when using fmtlib

Diff for: include/spdlog/sinks/callback_sink.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class callback_sink final : public base_sink<Mutex> {
2727

2828
protected:
2929
void sink_it_(const details::log_msg &msg) override { callback_(msg); }
30-
void flush_() override{};
30+
void flush_() override{}
3131

3232
private:
3333
custom_log_callback callback_;

Diff for: include/spdlog/sinks/msvc_sink.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class msvc_sink : public base_sink<Mutex> {
3232
public:
3333
msvc_sink() = default;
3434
msvc_sink(bool check_debugger_present)
35-
: check_debugger_present_{check_debugger_present} {};
35+
: check_debugger_present_{check_debugger_present} {}
3636

3737
protected:
3838
void sink_it_(const details::log_msg &msg) override {

0 commit comments

Comments
 (0)