Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jan 17, 2025
1 parent 82358e8 commit 8736ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/spdlog/sinks/async_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class SPDLOG_API async_sink final : public sink {
explicit async_sink(config async_config);
async_sink(const async_sink &) = delete;
async_sink &operator=(const async_sink &) = delete;
async_sink(async_sink &&) = delete;
async_sink &operator=(async_sink &&) = delete;
~async_sink() override;

// sink interface implementation
Expand Down Expand Up @@ -103,7 +105,6 @@ class SPDLOG_API async_sink final : public sink {
std::unique_ptr<queue_t> q_;
std::thread worker_thread_;
details::err_helper err_helper_;
std::atomic_size_t flush_requests_ = 0;
std::atomic_bool terminate_worker_ = false;
};

Expand Down
1 change: 1 addition & 0 deletions src/sinks/async_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async_sink::async_sink(config async_config)
});
}


async_sink::~async_sink() {
try {
q_->enqueue(async_log_msg(async_log_msg::type::terminate));
Expand Down

0 comments on commit 8736ee2

Please sign in to comment.