Skip to content

Commit

Permalink
Fix conflicting names
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Jan 26, 2025
1 parent da6990f commit c85dcc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/crash/crashhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bool lib::crash_handler::initialized = false;
#ifdef USE_GCC_CRASH_HANDLER
auto lib::crash_handler::init() -> bool
{
std::array<int, 5> signals{{
std::array<int, 5> signal_values{{
SIGABRT, // Abnormal termination
SIGFPE, // Erroneous arithmetic operation
SIGILL, // Illegal instruction
Expand All @@ -16,7 +16,7 @@ auto lib::crash_handler::init() -> bool
}};
initialized = true;
auto handler = reinterpret_cast<__sighandler_t>(lib::crash_handler::handle);
for (const auto s : signals)
for (const auto s : signal_values)
{
if (signal(s, handler) == nullptr)
{
Expand Down

0 comments on commit c85dcc7

Please sign in to comment.