PVS: V779 Unreachable code detected. It is possible that an error is present.

This commit is contained in:
wmayer
2019-02-17 20:12:56 +01:00
parent 239c20b71f
commit 1e343d339f
4 changed files with 8 additions and 15 deletions

View File

@@ -1214,8 +1214,7 @@ void segmentation_fault_handler(int sig)
std::cerr << "Program received signal SIGSEGV, Segmentation fault.\n";
printBacktrace(2);
exit(1);
#endif
#else
switch (sig) {
case SIGSEGV:
std::cerr << "Illegal storage access..." << std::endl;
@@ -1233,6 +1232,7 @@ void segmentation_fault_handler(int sig)
std::cerr << "Unknown error occurred..." << std::endl;
break;
}
#endif // FC_OS_LINUX
}
void unhandled_exception_handler()