diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea7ba00..3a9df33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: - run: sudo apt install g++-12-aarch64-linux-gnu - run: sudo apt install qemu-user - run: sudo ln -s /usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 /lib/ - - run: bazel test --disk_cache=bazel-disk --verbose_failures --platforms='@cross_config_toolchain//:cross' --action_env=CROSS_CC=/usr/bin/aarch64-linux-gnu-gcc-12 --features=-default_link_flags --test_env=LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib test/... + - run: bazel test --disk_cache=bazel-disk --verbose_failures --platforms='@cross_config_toolchain//:cross' --action_env=CROSS_CC=/usr/bin/aarch64-linux-gnu-gcc-12 --features=-default_link_flags --linkopt=-fuse-ld=gold --test_env=LD_LIBRARY_PATH=/usr/aarch64-linux-gnu/lib test/... workspace: runs-on: ubuntu-latest diff --git a/src/babylon/logging/log_stream.cpp b/src/babylon/logging/log_stream.cpp index 303f8af..d54e07e 100644 --- a/src/babylon/logging/log_stream.cpp +++ b/src/babylon/logging/log_stream.cpp @@ -24,11 +24,16 @@ 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" #if __clang__ || BABYLON_GCC_VERSION >= 50000 - LogStream {*::std::cerr.rdbuf()} + LogStream {*reinterpret_cast<::std::streambuf*>(0)} #else // !__clang__ && BABYLON_GCC_VERSION < 50000 - LogStream(*::std::cerr.rdbuf()) + 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();