Mercurial > public > ostc4
diff Discovery/Src/tMenuEditSetpoint.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 | d539ed9aa5b8 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditSetpoint.c Thu Mar 07 14:15:33 2019 +0000 +++ b/Discovery/Src/tMenuEditSetpoint.c Thu Mar 07 21:52:23 2019 +0100 @@ -180,7 +180,8 @@ /* surface mode */ uint8_t spId, setpoint_cbar, sp_high, depthDeco, first; // uint8_t active, - char text[70], textPointer; + char text[70]; + uint8_t textPointer; uint16_t y_line; set_globalState_Menu_Line(line);