Fix missing break while handling SIGBUS - fixes clang compiler warning

This commit is contained in:
Alexander Mai 2014-05-29 16:57:45 +02:00
parent bc2ba1706b
commit 707ee97b9e
1 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@ bool CppCheckExecutor::parseFromArgs(CppCheck *cppcheck, int argc, const char* c
{
Settings& settings = cppcheck->settings();
CmdLineParser parser(&settings);
bool success = parser.ParseFromArgs(argc, argv);
const bool success = parser.ParseFromArgs(argc, argv);
if (success) {
if (parser.GetShowVersion() && !parser.GetShowErrorMessages()) {
@ -323,6 +323,9 @@ static void CppcheckSignalHandler(int signo, siginfo_t * info, void * /*context*
default:
break;
}
fprintf(f, " (at 0x%p).\n",
info->si_addr);
break;
case SIGFPE:
switch (info->si_code) {
case FPE_INTDIV: // integer divide by zero