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

fix(scripts): initialize reserved fields of lv_image_dsc_t and lv_image_header_t to prevent compiler warnings #7799

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sparkles43
Copy link
Contributor

Previously the LVGLImage.py script did not initialize reserved fields of the lv_image_dsc_t and lv_image_header_t. This led to a flood of compiler warnings about uninitialized variables.

This PR sets these variables to zero and NULL respectively.

Copy link
Member

@uLipe uLipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the correction, this source of warning could be a pain on projects that promotes warnings to errors.

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

Successfully merging this pull request may close these issues.

2 participants