Skip to content

Commit

Permalink
[unix] Add const to local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Dec 17, 2024
1 parent 6b30231 commit 7546f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/platform_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ sigset_t mp::platform::make_sigset(const std::vector<int>& sigs)

sigset_t mp::platform::make_and_block_signals(const std::vector<int>& sigs)
{
auto sigset{make_sigset(sigs)};
const auto sigset{make_sigset(sigs)};
if (const auto ec = pthread_sigmask(SIG_BLOCK, &sigset, nullptr); ec)
throw std::runtime_error(fmt::format("Failed to block signals: {}", strerror(ec)));

Expand Down

0 comments on commit 7546f78

Please sign in to comment.