1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00
lvgl/lv_misc
Philipp Trommler 75f3198c3d lv_log: Fix type limits error
When building LittlevGL with a rather recent compiler (tested with GCC
7.3.1 provided by Arm), `-Wall`, `-Wextra` and `-Werror` activated and
`LV_LOG_LEVEL` set to `LV_LOG_LEVEL_TRACE`, compilation fails due to a
type limits error in lv_log.c

     if(level >= LV_LOG_LEVEL) {
              ^~

because the comparison is always true, since level is a `lv_log_level_t`
(that is a typedef for `uint8_t`) and `LV_LOG_LEVEL_TRACE` equals 0.

Fix that by making `lv_log_level_t` a typedef to `int8_t`.

Fixes #690
2019-01-02 15:18:02 +01:00
..
2018-10-05 17:22:49 +02:00
2018-06-19 09:49:58 +02:00
2018-06-19 09:49:58 +02:00
2018-06-19 09:49:58 +02:00
2018-10-05 17:22:49 +02:00
2018-10-05 17:22:49 +02:00
2018-10-05 17:22:49 +02:00
2018-10-05 17:22:49 +02:00
2018-10-30 09:18:45 +01:00
2018-10-30 09:18:45 +01:00
2018-10-05 17:22:49 +02:00
2019-01-02 15:18:02 +01:00
2018-06-19 09:49:58 +02:00
2018-06-19 09:49:58 +02:00
2018-10-05 17:22:49 +02:00
2018-11-30 10:05:30 +01:00
2018-09-18 13:59:40 +02:00
2018-06-19 09:49:58 +02:00
2018-06-19 09:49:58 +02:00
2018-10-05 17:22:49 +02:00
2018-10-05 17:22:49 +02:00
2018-10-05 17:22:49 +02:00