From a32af77ec09af2b736ff708fc4df265628651adb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Aug 2002 14:00:52 +0000 Subject: remove compiler warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1528 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/lcd-win32.c | 16 ++++++++++------ uisimulator/win32/thread-win32.c | 3 +++ uisimulator/win32/uisw32.c | 7 ++++++- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c index 2eef2d5646..510117ed9d 100644 --- a/uisimulator/win32/lcd-win32.c +++ b/uisimulator/win32/lcd-win32.c @@ -32,11 +32,15 @@ char bitmap[LCD_HEIGHT][LCD_WIDTH]; // the ui display BITMAPINFO2 bmi = { - sizeof (BITMAPINFOHEADER), - LCD_WIDTH, -LCD_HEIGHT, 1, 8, - BI_RGB, 0, 0, 0, 2, 2, - UI_LCD_BGCOLOR, 0, // green background color - UI_LCD_BLACK, 0 // black color + {sizeof (BITMAPINFOHEADER), + LCD_WIDTH, -LCD_HEIGHT, 1, 8, + BI_RGB, 0, 0, 0, 2, 2, + }, + { + {UI_LCD_BGCOLOR, 0}, // green background color + {UI_LCD_BLACK, 0} // black color + } + }; // bitmap information @@ -76,4 +80,4 @@ void lcd_backlight ( } InvalidateRect (hGUIWnd, NULL, FALSE); -} \ No newline at end of file +} diff --git a/uisimulator/win32/thread-win32.c b/uisimulator/win32/thread-win32.c index 2ad356c62f..c2e9cef42b 100644 --- a/uisimulator/win32/thread-win32.c +++ b/uisimulator/win32/thread-win32.c @@ -36,6 +36,9 @@ int create_thread(void* fp, void* sp, int stk_size) { DWORD dwThreadID; + (void)sp; + (void)stk_size; + if (nThreads == 256) return -1; diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index a491dec7db..5f1dff871e 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c @@ -51,7 +51,6 @@ LRESULT GUIWndProc ( ) { static HBITMAP hBkgnd; - static lpBmp [UI_WIDTH * UI_HEIGHT * 3]; static HDC hMemDc; switch (uMsg) @@ -290,6 +289,12 @@ int WINAPI WinMain ( ) { DWORD dwThreadID; + + (void)hInstance; + (void)hPrevInstance; + (void)lpCmd; + (void)nShowCmd; + if (!GUIStartup ()) return 0; -- cgit v1.2.3