Closed vanvught closed 5 years ago
@nopnop2002 There some remaining errors in:
src/demo.c:56:14: error: variable 'XMAX' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (model == 3) {
^~~~~~~~~~
src/demo.c:62:11: note: uninitialized use occurs here
XMAX2 = XMAX - 1;
^~~~
src/demo.c:56:10: note: remove the 'if' if its condition is always true
} else if (model == 3) {
^~~~~~~~~~~~~~~~
src/demo.c:33:11: note: initialize the variable 'XMAX' to silence this warning
int XMAX,YMAX;
^
= 0
src/demo.c:56:14: error: variable 'YMAX' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (model == 3) {
^~~~~~~~~~
src/demo.c:63:11: note: uninitialized use occurs here
YMAX2 = YMAX - 1;
^~~~
src/demo.c:56:10: note: remove the 'if' if its condition is always true
} else if (model == 3) {
^~~~~~~~~~~~~~~~
src/demo.c:33:16: note: initialize the variable 'YMAX' to silence this warning
int XMAX,YMAX;
^
= 0
2 errors generated.
@nopnop2002 And also some remaining in here:
src/ili9340.c:632:14: error: variable 'yss' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (_FONT_DIRECTION_ == 3) {
^~~~~~~~~~~~~~~~~~~~~
src/ili9340.c:647:8: note: uninitialized use occurs here
yy = yss;
^~~
src/ili9340.c:632:10: note: remove the 'if' if its condition is always true
} else if (_FONT_DIRECTION_ == 3) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ili9340.c:599:20: note: initialize the variable 'yss' to silence this warning
uint16_t xss, yss;
^
= 0
src/ili9340.c:632:14: error: variable 'xss' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
} else if (_FONT_DIRECTION_ == 3) {
^~~~~~~~~~~~~~~~~~~~~
src/ili9340.c:648:8: note: uninitialized use occurs here
xx = xss;
^~~
src/ili9340.c:632:10: note: remove the 'if' if its condition is always true
} else if (_FONT_DIRECTION_ == 3) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ili9340.c:599:15: note: initialize the variable 'xss' to silence this warning
uint16_t xss, yss;
^
= 0
2 errors generated.