Mercurial > public > ostc4
comparison Discovery/Src/t4_tetris.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 | 5f11787b4f42 |
children | ecb71521d004 |
comparison
equal
deleted
inserted
replaced
164:3e3d1ebba956 | 166:255eedad4155 |
---|---|
118 if(status.base != BaseHome) | 118 if(status.base != BaseHome) |
119 return; | 119 return; |
120 | 120 |
121 t4screen.FBStartAdress = getFrame(25); | 121 t4screen.FBStartAdress = getFrame(25); |
122 t4_refresh_divemode(); | 122 t4_refresh_divemode(); |
123 GFX_SetFramesTopBottom(t4screen.FBStartAdress, NULL,480); | 123 GFX_SetFramesTopBottom(t4screen.FBStartAdress, 0,480); |
124 releaseAllFramesExcept(25,t4screen.FBStartAdress); | 124 releaseAllFramesExcept(25,t4screen.FBStartAdress); |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 /* Private functions ---------------------------------------------------------*/ | 128 /* Private functions ---------------------------------------------------------*/ |