diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 0000000..9f517fe --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,23 @@ +name: C/C++ CI + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck diff --git a/include/boost/stacktrace/detail/safe_dump_win.ipp b/include/boost/stacktrace/detail/safe_dump_win.ipp index 25e8c14..6cb2289 100644 --- a/include/boost/stacktrace/detail/safe_dump_win.ipp +++ b/include/boost/stacktrace/detail/safe_dump_win.ipp @@ -24,7 +24,7 @@ namespace boost { namespace stacktrace { namespace detail { std::size_t dump(void* /*fd*/, const native_frame_ptr_t* /*frames*/, std::size_t /*frames_count*/) noexcept { -#if 0 // This code potentially could cause deadlocks (according to the MSDN). Disabled +#if 1 // This code potentially could cause deadlocks (according to the MSDN). Disabled boost::winapi::DWORD_ written; const boost::winapi::DWORD_ bytes_to_write = static_cast( sizeof(native_frame_ptr_t) * frames_count @@ -39,7 +39,7 @@ std::size_t dump(void* /*fd*/, const native_frame_ptr_t* /*frames*/, std::size_t } std::size_t dump(const char* /*file*/, const native_frame_ptr_t* /*frames*/, std::size_t /*frames_count*/) noexcept { -#if 0 // This code causing deadlocks on some platforms. Disabled +#if 1 // This code causing deadlocks on some platforms. Disabled void* const fd = boost::winapi::CreateFileA( file, boost::winapi::GENERIC_WRITE_,