summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-02 14:00:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-02 14:00:52 +0000
commita32af77ec09af2b736ff708fc4df265628651adb (patch)
treeacc1d8fe729df54746ecf27ca47922df7b28911d
parent02d4731cfaaf653d41e1a2a2d3040dae36610a4e (diff)
downloadrockbox-a32af77ec09af2b736ff708fc4df265628651adb.tar.gz
rockbox-a32af77ec09af2b736ff708fc4df265628651adb.zip
remove compiler warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1528 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/win32/lcd-win32.c16
-rw-r--r--uisimulator/win32/thread-win32.c3
-rw-r--r--uisimulator/win32/uisw32.c7
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
32 32
33BITMAPINFO2 bmi = 33BITMAPINFO2 bmi =
34{ 34{
35 sizeof (BITMAPINFOHEADER), 35 {sizeof (BITMAPINFOHEADER),
36 LCD_WIDTH, -LCD_HEIGHT, 1, 8, 36 LCD_WIDTH, -LCD_HEIGHT, 1, 8,
37 BI_RGB, 0, 0, 0, 2, 2, 37 BI_RGB, 0, 0, 0, 2, 2,
38 UI_LCD_BGCOLOR, 0, // green background color 38 },
39 UI_LCD_BLACK, 0 // black color 39 {
40 {UI_LCD_BGCOLOR, 0}, // green background color
41 {UI_LCD_BLACK, 0} // black color
42 }
43
40}; // bitmap information 44}; // bitmap information
41 45
42 46
@@ -76,4 +80,4 @@ void lcd_backlight (
76 } 80 }
77 81
78 InvalidateRect (hGUIWnd, NULL, FALSE); 82 InvalidateRect (hGUIWnd, NULL, FALSE);
79} \ No newline at end of file 83}
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)
36{ 36{
37 DWORD dwThreadID; 37 DWORD dwThreadID;
38 38
39 (void)sp;
40 (void)stk_size;
41
39 if (nThreads == 256) 42 if (nThreads == 256)
40 return -1; 43 return -1;
41 44
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 (
51 ) 51 )
52{ 52{
53 static HBITMAP hBkgnd; 53 static HBITMAP hBkgnd;
54 static lpBmp [UI_WIDTH * UI_HEIGHT * 3];
55 static HDC hMemDc; 54 static HDC hMemDc;
56 55
57 switch (uMsg) 56 switch (uMsg)
@@ -290,6 +289,12 @@ int WINAPI WinMain (
290 ) 289 )
291{ 290{
292 DWORD dwThreadID; 291 DWORD dwThreadID;
292
293 (void)hInstance;
294 (void)hPrevInstance;
295 (void)lpCmd;
296 (void)nShowCmd;
297
293 if (!GUIStartup ()) 298 if (!GUIStartup ())
294 return 0; 299 return 0;
295 300