Skip to content

Commit

Permalink
fix(build): Removed unused m_update_check_finished
Browse files Browse the repository at this point in the history
  • Loading branch information
mfep committed May 28, 2024
1 parent 9b10d3f commit 7c1ea93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
env:
CXXFLAGS: -Wall -Wextra -Wno-deprecated-declarations -Werror -Wno-stringop-overflow
steps:
- name: Setup system name
run:
- echo "SYSTEM_NAME=$(lsb_release --codename --short)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -33,15 +36,15 @@ jobs:
-D MC_COMMIT_SHA=${{github.sha}}
-D MC_BUILD_NUMBER=${{github.run_number}}
-D CPACK_GENERATOR=DEB
-D CPACK_SYSTEM_NAME=$(lsb_release --codename --short)
-D CPACK_SYSTEM_NAME=$SYSTEM_NAME
- name: Build
run: cmake --build ${{github.workspace}}/build --target midiconn -j $(nproc)
- name: Create DEB package
run: cd ${{github.workspace}}/build && cpack -C Release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: linux
name: linux-$SYSTEM_NAME
path: |
${{github.workspace}}/build/midiconn
${{github.workspace}}/build/*.deb
Expand Down
1 change: 0 additions & 1 deletion src/UpdateChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ UpdateChecker::UpdateChecker()

void UpdateChecker::trigger_check()
{
m_update_check_finished = false;
m_latest_version_written = false;
std::thread([this] {
using namespace std::chrono_literals;
Expand Down
1 change: 0 additions & 1 deletion src/UpdateChecker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ struct UpdateChecker
CheckResult get_latest_version() const;

private:
[[maybe_unused]] bool m_update_check_finished = false;
CheckResult m_latest_version_result = {};
std::atomic_bool m_latest_version_written;
};
Expand Down

0 comments on commit 7c1ea93

Please sign in to comment.