Mercurial > public > ostc4
comparison Discovery/Src/tInfo.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 | b7689d9e888a |
children | 2bb1db22b5f5 |
comparison
equal
deleted
inserted
replaced
164:3e3d1ebba956 | 166:255eedad4155 |
---|---|
146 if(tIscreen.FBStartAdress) | 146 if(tIscreen.FBStartAdress) |
147 releaseFrame(14,tIscreen.FBStartAdress); | 147 releaseFrame(14,tIscreen.FBStartAdress); |
148 tIscreen.FBStartAdress = getFrame(14); | 148 tIscreen.FBStartAdress = getFrame(14); |
149 | 149 |
150 // GFX_SetFramesTopBottom(tIscreen.FBStartAdress, tIcursor.FBStartAdress,480); | 150 // GFX_SetFramesTopBottom(tIscreen.FBStartAdress, tIcursor.FBStartAdress,480); |
151 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, NULL,480); | 151 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480); |
152 infoColor = CLUT_InfoSurface; | 152 infoColor = CLUT_InfoSurface; |
153 | 153 |
154 if(modeToStart == StIDEBUG) | 154 if(modeToStart == StIDEBUG) |
155 { | 155 { |
156 tDebug_start(); | 156 tDebug_start(); |
216 tDebug_refresh(); | 216 tDebug_refresh(); |
217 else | 217 else |
218 refreshInfo_Compass(); | 218 refreshInfo_Compass(); |
219 | 219 |
220 if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */ | 220 if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */ |
221 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, NULL,480); | 221 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480); |
222 | 222 |
223 if(oldIscreen) | 223 if(oldIscreen) |
224 releaseFrame(14,oldIscreen); | 224 releaseFrame(14,oldIscreen); |
225 } | 225 } |
226 | 226 |
532 TIident[TIid].orgText[31] = 0; | 532 TIident[TIid].orgText[31] = 0; |
533 TIident[TIid].newText[31] = 0; | 533 TIident[TIid].newText[31] = 0; |
534 | 534 |
535 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1); | 535 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1); |
536 | 536 |
537 if(editID == NULL) | 537 if(editID == 0) |
538 tInfo_write_content_without_Id(); | 538 tInfo_write_content_without_Id(); |
539 else | 539 else |
540 { | 540 { |
541 tInfo_write_content_of_actual_Id(); | 541 tInfo_write_content_of_actual_Id(); |
542 TIidLast = TIid; | 542 TIidLast = TIid; |
569 TIident[TIid].input = int1; | 569 TIident[TIid].input = int1; |
570 TIident[TIid].symbolCounter = strlen(TIident[TIid].orgText); | 570 TIident[TIid].symbolCounter = strlen(TIident[TIid].orgText); |
571 | 571 |
572 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1); | 572 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoButtonColor1); |
573 | 573 |
574 if(editID == NULL) | 574 if(editID == 0) |
575 tInfo_write_content_without_Id(); | 575 tInfo_write_content_without_Id(); |
576 else | 576 else |
577 { | 577 { |
578 tInfo_write_content_of_actual_Id(); | 578 tInfo_write_content_of_actual_Id(); |
579 TIidLast = TIid; | 579 TIidLast = TIid; |
605 if(int1) | 605 if(int1) |
606 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoActive); | 606 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoActive); |
607 else | 607 else |
608 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoInActive); | 608 change_CLUT_entry((CLUT_InfoField0 + TIid), CLUT_InfoInActive); |
609 | 609 |
610 if(editID == NULL) | 610 if(editID == 0) |
611 tInfo_write_content_without_Id(); | 611 tInfo_write_content_without_Id(); |
612 else | 612 else |
613 { | 613 { |
614 tInfo_write_content_of_actual_Id(); | 614 tInfo_write_content_of_actual_Id(); |
615 TIidLast = TIid; | 615 TIidLast = TIid; |