Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: comparison between 'lcd_color_rgb_endian_t' and 'enum <anonymous>' [-Werror=enum-compare] #1

Closed
greenhand520 opened this issue Nov 10, 2022 · 1 comment
Assignees

Comments

@greenhand520
Copy link

greenhand520 commented Nov 10, 2022

idf.py build或者CLion构建,相同错误:

esp_lcd_ili9488.c: In function 'esp_lcd_new_panel_ili9488':
~/Workspace/Projects/CLionProjects/VisualInfo/managed_components/atanisoft__esp_lcd_ili9488/esp_lcd_ili9488.c:349:39: error: comparison between 'lcd_color_rgb_endian_t' and 'enum ' [-Werror=enum-compare]
349 | if (panel_dev_config->color_space == ESP_LCD_COLOR_SPACE_RGB)
| ^~
cc1: some warnings being treated as errors
[866/1054] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/manager.c.obj
ninja: build stopped: subcommand failed.

image

@atanisoft atanisoft self-assigned this Nov 10, 2022
@atanisoft
Copy link
Owner

I wasn't seeing this with v4.4.3 in my tests but it looks to be an easy fix. Was there a specific sdkconfig entry you enabled to trigger this?

atanisoft added a commit that referenced this issue Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants