Mercurial > public > ostc4
diff Discovery/Src/t7.c @ 166:255eedad4155 cleanup-1
cleanup: get rid of some compile warnings
Compiling with -Wall and not taking action on produced warnings is
pretty useless.
This fixes chars used as array indexes, and using the NULL pointer
as a 0 constant.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Thu, 07 Mar 2019 21:52:23 +0100 |
parents | e1d66bc78f9a |
children | ecb71521d004 |
line wrap: on
line diff
--- a/Discovery/Src/t7.c Thu Mar 07 14:15:33 2019 +0000 +++ b/Discovery/Src/t7.c Thu Mar 07 21:52:23 2019 +0100 @@ -109,7 +109,7 @@ SBackground background = { - .pointer = NULL, + .pointer = 0, }; @@ -544,7 +544,7 @@ if(get_globalState() == StStop) { - GFX_SetFramesTopBottom(t7screen.FBStartAdress, NULL,480); + GFX_SetFramesTopBottom(t7screen.FBStartAdress, 0,480); } releaseFrame(22,oldScreen); } @@ -624,7 +624,7 @@ GFX_SetFrameBottom(background.pointer,background.x0 , background.y0, background.width, background.height); } else - GFX_SetFramesTopBottom(t7screen.FBStartAdress, NULL,480); + GFX_SetFramesTopBottom(t7screen.FBStartAdress, 0,480); } releaseAllFramesExcept(22,t7screen.FBStartAdress); @@ -2444,7 +2444,7 @@ if(stateUsed->warnings.numWarnings) customview_warnings = t7_test_customview_warnings(); - background.pointer = NULL; + background.pointer = 0; if(customview_warnings && warning_count_high_time) t7_show_customview_warnings(); else