diff options
author | Paul Adenot <[email protected]> | 2023-07-25 14:40:41 +0200 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2023-07-26 13:52:43 +0200 |
commit | 16c450f44c2b7f9bc4f875fbf6244cb769aec069 (patch) | |
tree | 29c33140ee6cf201a3489c1fb054196ae9fe6ff2 | |
parent | 12d3e2bae5f5cb61ae5b761e4b99dbcb0498ade8 (diff) | |
download | cubeb-16c450f44c2b7f9bc4f875fbf6244cb769aec069.tar.gz cubeb-16c450f44c2b7f9bc4f875fbf6244cb769aec069.zip |
Fix clang-tidy warnings in cubeb_log.cpp
-rw-r--r-- | src/cubeb_log.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cubeb_log.cpp b/src/cubeb_log.cpp index 7b71150..73b568f 100644 --- a/src/cubeb_log.cpp +++ b/src/cubeb_log.cpp @@ -54,7 +54,7 @@ public: char const * get() { return storage; } private: - char storage[CUBEB_LOG_MESSAGE_MAX_SIZE]; + char storage[CUBEB_LOG_MESSAGE_MAX_SIZE]{}; }; /** Lock-free asynchronous logger, made so that logging from a @@ -70,7 +70,7 @@ public: void push(char const str[CUBEB_LOG_MESSAGE_MAX_SIZE]) { cubeb_log_message msg(str); - auto owned_queue = msg_queue.load(); + auto * owned_queue = msg_queue.load(); // Check if the queue is being deallocated. If not, grab ownership. If yes, // return, the message won't be logged. if (!owned_queue || @@ -123,7 +123,7 @@ public: if (logging_thread.get_id() != std::thread::id()) { logging_thread.join(); logging_thread = std::thread(); - auto owned_queue = msg_queue.load(); + auto * owned_queue = msg_queue.load(); // Check if the queue is being used. If not, grab ownership. If yes, // try again shortly. At this point, the logging thread has been joined, // so nothing is going to dequeue. |