Skip to content

Commit 2e2475f

Browse files
committed
Fix unused variable warnings
1 parent f0044e9 commit 2e2475f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

UnitTest++/Posix/SignalTranslator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ namespace UnitTest {
2828
sigaction( SIGFPE, &action, &m_old_SIGFPE_action );
2929
sigaction( SIGTRAP, &action, &m_old_SIGTRAP_action );
3030
sigaction( SIGBUS, &action, &m_old_SIGBUS_action );
31-
sigaction( SIGILL, &action, &m_old_SIGBUS_action );
31+
sigaction( SIGILL, &action, &m_old_SIGILL_action );
3232
}
3333

3434
SignalTranslator::~SignalTranslator()
3535
{
36-
sigaction( SIGILL, &m_old_SIGBUS_action, 0 );
36+
sigaction( SIGILL, &m_old_SIGILL_action, 0 );
3737
sigaction( SIGBUS, &m_old_SIGBUS_action, 0 );
3838
sigaction( SIGTRAP, &m_old_SIGTRAP_action, 0 );
3939
sigaction( SIGFPE, &m_old_SIGFPE_action, 0 );

UnitTest++/Posix/SignalTranslator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace UnitTest {
2222
struct sigaction m_old_SIGTRAP_action;
2323
struct sigaction m_old_SIGSEGV_action;
2424
struct sigaction m_old_SIGBUS_action;
25-
struct sigaction m_old_SIGABRT_action;
26-
struct sigaction m_old_SIGALRM_action;
25+
struct sigaction m_old_SIGILL_action;
2726
};
2827

2928
#if !defined (__GNUC__)

0 commit comments

Comments
 (0)