Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Aug 7, 2024
1 parent 58b6dba commit 339125e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/babylon/logging/log_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ class NullLogStream::Buffer : public ::std::streambuf {
void LogStream::do_begin() noexcept {}
void LogStream::do_end() noexcept {}

DefaultLogStream::DefaultLogStream() noexcept
:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wnull-dereference"
DefaultLogStream::DefaultLogStream() noexcept
:
#if __clang__ || BABYLON_GCC_VERSION >= 50000
LogStream {*reinterpret_cast<::std::streambuf*>(0)}
#else // !__clang__ && BABYLON_GCC_VERSION < 50000
LogStream(*reinterpret_cast<::std::streambuf*>(0))
#endif // !__clang__ && BABYLON_GCC_VERSION < 50000
#pragma GCC diagnostic pop
{
// Ensure std::cerr is initialized
::std::ios_base::Init();
rdbuf(::std::cerr.rdbuf());
}
#pragma GCC diagnostic pop

::std::mutex& DefaultLogStream::mutex() noexcept {
static ::std::mutex mutex;
Expand Down

0 comments on commit 339125e

Please sign in to comment.