Skip to content

Commit

Permalink
Disable erroneous old-style-cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed Jan 3, 2020
1 parent 202f0b8 commit fe72505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/crash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ extern "C" {

static void signal_handler( int sig )
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
signal( sig, SIG_DFL );
#pragma GCC diagnostic pop
const char *msg;
switch( sig ) {
case SIGSEGV:
Expand All @@ -281,7 +284,10 @@ extern "C" {
return;
}
log_crash( "Signal", msg );
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
std::signal( SIGABRT, SIG_DFL );
#pragma GCC diagnostic pop
abort();
}

Expand Down

0 comments on commit fe72505

Please sign in to comment.