comparison 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
comparison
equal deleted inserted replaced
164:3e3d1ebba956 166:255eedad4155
107 uint32_t height; 107 uint32_t height;
108 } SBackground; 108 } SBackground;
109 109
110 SBackground background = 110 SBackground background =
111 { 111 {
112 .pointer = NULL, 112 .pointer = 0,
113 }; 113 };
114 114
115 115
116 /* Private types -------------------------------------------------------------*/ 116 /* Private types -------------------------------------------------------------*/
117 const uint8_t customviewsDiveStandard[] = 117 const uint8_t customviewsDiveStandard[] =
542 542
543 t7_refresh_sleep_design_fun(); 543 t7_refresh_sleep_design_fun();
544 544
545 if(get_globalState() == StStop) 545 if(get_globalState() == StStop)
546 { 546 {
547 GFX_SetFramesTopBottom(t7screen.FBStartAdress, NULL,480); 547 GFX_SetFramesTopBottom(t7screen.FBStartAdress, 0,480);
548 } 548 }
549 releaseFrame(22,oldScreen); 549 releaseFrame(22,oldScreen);
550 } 550 }
551 551
552 552
622 { 622 {
623 GFX_SetFrameTop(t7screen.FBStartAdress); 623 GFX_SetFrameTop(t7screen.FBStartAdress);
624 GFX_SetFrameBottom(background.pointer,background.x0 , background.y0, background.width, background.height); 624 GFX_SetFrameBottom(background.pointer,background.x0 , background.y0, background.width, background.height);
625 } 625 }
626 else 626 else
627 GFX_SetFramesTopBottom(t7screen.FBStartAdress, NULL,480); 627 GFX_SetFramesTopBottom(t7screen.FBStartAdress, 0,480);
628 } 628 }
629 629
630 releaseAllFramesExcept(22,t7screen.FBStartAdress); 630 releaseAllFramesExcept(22,t7screen.FBStartAdress);
631 } 631 }
632 632
2442 /* customview - option 1 2442 /* customview - option 1
2443 * warning - option 2 */ 2443 * warning - option 2 */
2444 if(stateUsed->warnings.numWarnings) 2444 if(stateUsed->warnings.numWarnings)
2445 customview_warnings = t7_test_customview_warnings(); 2445 customview_warnings = t7_test_customview_warnings();
2446 2446
2447 background.pointer = NULL; 2447 background.pointer = 0;
2448 if(customview_warnings && warning_count_high_time) 2448 if(customview_warnings && warning_count_high_time)
2449 t7_show_customview_warnings(); 2449 t7_show_customview_warnings();
2450 else 2450 else
2451 t7_refresh_customview(); 2451 t7_refresh_customview();
2452 2452