Michael Stefaniuc : programs: Remove unreachable break after
return/break. Found by Smatch.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jul 19 07:59:45 CDT 2007
Module: wine
Branch: master
Commit: 9a522589fb1d4d4112f60f724143ad63c9fb0c49
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a522589fb1d4d4112f60f724143ad63c9fb0c49
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jul 19 01:13:13 2007 +0200
programs: Remove unreachable break after return/break. Found by Smatch.
---
programs/notepad/dialog.c | 2 --
programs/regedit/framewnd.c | 1 -
programs/regedit/listview.c | 1 -
programs/taskmgr/taskmgr.c | 1 -
programs/winedbg/be_i386.c | 1 -
programs/winedbg/gdbproxy.c | 1 -
programs/wordpad/wordpad.c | 1 -
7 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c
index c5cfc3c..ad1e9a4 100644
--- a/programs/notepad/dialog.c
+++ b/programs/notepad/dialog.c
@@ -188,10 +188,8 @@ BOOL DoCloseFile(void)
case IDNO: break;
case IDCANCEL: return(FALSE);
- break;
default: return(FALSE);
- break;
} /* switch */
} /* if */
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 2b17cc1..a2d94bf 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -735,7 +735,6 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
StartValueRename(g_pChildWnd->hListWnd);
}
break;
- break;
case ID_REGISTRY_PRINTERSETUP:
/*PRINTDLG pd;*/
/*PrintDlg(&pd);*/
diff --git a/programs/regedit/listview.c b/programs/regedit/listview.c
index 52c2b0c..0e4b52b 100644
--- a/programs/regedit/listview.c
+++ b/programs/regedit/listview.c
@@ -446,7 +446,6 @@ static LRESULT CALLBACK ListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPAR
}
default:
return CallWindowProc(g_orgListWndProc, hWnd, message, wParam, lParam);
- break;
}
return 0;
}
diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c
index d59bd19..89b02a3 100644
--- a/programs/taskmgr/taskmgr.c
+++ b/programs/taskmgr/taskmgr.c
@@ -978,7 +978,6 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
pRC->bottom = pRC->top + nMinimumHeight;
}
return TRUE;
- break;
case WM_SIZE:
/* Handle the window sizing in it's own function */
diff --git a/programs/winedbg/be_i386.c b/programs/winedbg/be_i386.c
index 2a51ec7..fe8b087 100644
--- a/programs/winedbg/be_i386.c
+++ b/programs/winedbg/be_i386.c
@@ -63,7 +63,6 @@ static void* be_i386_linearize(HANDLE hThread, const ADDRESS64* addr)
return (void*)((le.HighWord.Bits.BaseHi << 24) +
(le.HighWord.Bits.BaseMid << 16) + le.BaseLow +
(DWORD)addr->Offset);
- break;
case AddrModeFlat:
return (void*)(DWORD)addr->Offset;
}
diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 9b1e9bc..4f83c72 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -2154,7 +2154,6 @@ static BOOL gdb_startup(struct gdb_context* gdbctx, DEBUG_EVENT* de, unsigned fl
case -1: /* error in parent... */
fprintf(stderr, "Cannot create gdb\n");
return FALSE;
- break;
default: /* in parent... success */
break;
case 0: /* in child... and alive */
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index be61b1b..0b11da2 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -287,7 +287,6 @@ static BOOL prompt_save_changes(void)
{
case IDNO:
return TRUE;
- break;
case IDYES:
if(wszFileName[0])
More information about the wine-cvs
mailing list