From 6b46d4e872bfb6174a4832ab4d3a2d2c38d2cf4a Mon Sep 17 00:00:00 2001 From: "ivan.penkov@gmail.com" Date: Tue, 4 Jun 2013 16:51:01 +0000 Subject: Treat warnings as error and fix most level 4 warnings in the breakpad windows client projects. Some of the lint errors in the files touched by this change were also fixed. BUG=533 Review URL: https://breakpad.appspot.com/601002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1189 4c0a9323-5329-0410-9bdc-e9ce6186880e --- .../crash_generation_app/crash_generation_app.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/client/windows/tests/crash_generation_app') diff --git a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc index e36c1d1e..12449ce9 100644 --- a/src/client/windows/tests/crash_generation_app/crash_generation_app.cc +++ b/src/client/windows/tests/crash_generation_app/crash_generation_app.cc @@ -345,9 +345,9 @@ void CleanUp() { // Processes messages for the main window. // -// WM_COMMAND - process the application menu. -// WM_PAINT - Paint the main window. -// WM_DESTROY - post a quit message and return. +// WM_COMMAND - process the application menu. +// WM_PAINT - Paint the main window. +// WM_DESTROY - post a quit message and return. LRESULT CALLBACK WndProc(HWND wnd, UINT message, WPARAM w_param, @@ -359,7 +359,7 @@ LRESULT CALLBACK WndProc(HWND wnd, #pragma warning(push) #pragma warning(disable:4312) - // Disable warning C4312: 'type cast' : conversion from 'LONG' to + // Disable warning C4312: 'type cast' : conversion from 'LONG' to // 'HINSTANCE' of greater size. // The value returned by GetwindowLong in the case below returns unsigned. HINSTANCE instance = (HINSTANCE)GetWindowLong(wnd, GWL_HINSTANCE); @@ -415,16 +415,16 @@ LRESULT CALLBACK WndProc(HWND wnd, instance, NULL); break; - case WM_SIZE: - // Make the edit control the size of the window's client area. - MoveWindow(client_status_edit_box, + case WM_SIZE: + // Make the edit control the size of the window's client area. + MoveWindow(client_status_edit_box, 0, 0, LOWORD(l_param), // width of client area. HIWORD(l_param), // height of client area. TRUE); // repaint window. break; - case WM_SETFOCUS: + case WM_SETFOCUS: SetFocus(client_status_edit_box); break; case WM_PAINT: @@ -501,7 +501,7 @@ int APIENTRY _tWinMain(HINSTANCE instance, MyRegisterClass(instance); // Perform application initialization. - if (!InitInstance (instance, command_show)) { + if (!InitInstance(instance, command_show)) { return FALSE; } @@ -518,5 +518,5 @@ int APIENTRY _tWinMain(HINSTANCE instance, } } - return (int)msg.wParam; + return static_cast(msg.wParam); } -- cgit v1.2.1