programs: Remove unreachable break after return/break. Found by Smatch.
This commit is contained in:
parent
02933a11de
commit
9a522589fb
|
@ -188,10 +188,8 @@ BOOL DoCloseFile(void)
|
||||||
case IDNO: break;
|
case IDNO: break;
|
||||||
|
|
||||||
case IDCANCEL: return(FALSE);
|
case IDCANCEL: return(FALSE);
|
||||||
break;
|
|
||||||
|
|
||||||
default: return(FALSE);
|
default: return(FALSE);
|
||||||
break;
|
|
||||||
} /* switch */
|
} /* switch */
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
|
|
|
@ -735,7 +735,6 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
StartValueRename(g_pChildWnd->hListWnd);
|
StartValueRename(g_pChildWnd->hListWnd);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
break;
|
|
||||||
case ID_REGISTRY_PRINTERSETUP:
|
case ID_REGISTRY_PRINTERSETUP:
|
||||||
/*PRINTDLG pd;*/
|
/*PRINTDLG pd;*/
|
||||||
/*PrintDlg(&pd);*/
|
/*PrintDlg(&pd);*/
|
||||||
|
|
|
@ -446,7 +446,6 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return CallWindowProc(g_orgListWndProc, hWnd, message, wParam, lParam);
|
return CallWindowProc(g_orgListWndProc, hWnd, message, wParam, lParam);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -978,7 +978,6 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
pRC->bottom = pRC->top + nMinimumHeight;
|
pRC->bottom = pRC->top + nMinimumHeight;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
break;
|
|
||||||
|
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
/* Handle the window sizing in it's own function */
|
/* Handle the window sizing in it's own function */
|
||||||
|
|
|
@ -63,7 +63,6 @@ static void* be_i386_linearize(HANDLE hThread, const ADDRESS64* addr)
|
||||||
return (void*)((le.HighWord.Bits.BaseHi << 24) +
|
return (void*)((le.HighWord.Bits.BaseHi << 24) +
|
||||||
(le.HighWord.Bits.BaseMid << 16) + le.BaseLow +
|
(le.HighWord.Bits.BaseMid << 16) + le.BaseLow +
|
||||||
(DWORD)addr->Offset);
|
(DWORD)addr->Offset);
|
||||||
break;
|
|
||||||
case AddrModeFlat:
|
case AddrModeFlat:
|
||||||
return (void*)(DWORD)addr->Offset;
|
return (void*)(DWORD)addr->Offset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2154,7 +2154,6 @@ static BOOL gdb_startup(struct gdb_context* gdbctx, DEBUG_EVENT* de, unsigned fl
|
||||||
case -1: /* error in parent... */
|
case -1: /* error in parent... */
|
||||||
fprintf(stderr, "Cannot create gdb\n");
|
fprintf(stderr, "Cannot create gdb\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
|
||||||
default: /* in parent... success */
|
default: /* in parent... success */
|
||||||
break;
|
break;
|
||||||
case 0: /* in child... and alive */
|
case 0: /* in child... and alive */
|
||||||
|
|
|
@ -287,7 +287,6 @@ static BOOL prompt_save_changes(void)
|
||||||
{
|
{
|
||||||
case IDNO:
|
case IDNO:
|
||||||
return TRUE;
|
return TRUE;
|
||||||
break;
|
|
||||||
|
|
||||||
case IDYES:
|
case IDYES:
|
||||||
if(wszFileName[0])
|
if(wszFileName[0])
|
||||||
|
|
Loading…
Reference in New Issue