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

chore(libpng): fix warning #5431

Merged
merged 1 commit into from
Jan 23, 2024
Merged

chore(libpng): fix warning #5431

merged 1 commit into from
Jan 23, 2024

Conversation

FASTSHIFT
Copy link
Collaborator

Description of the feature or fix

lvgl/lvgl/src/libs/libpng/../../../lvgl.h:30,
                 from lvgl/lvgl/src/libs/libpng/lv_libpng.c:9:
lvgl/lvgl/src/libs/libpng/lv_libpng.c: In function 'decode_png_file':
lvgl/lvgl/src/libs/libpng/lv_libpng.c:270:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'png_uint_32' {aka 'unsigned int'} [-Wformat=]
  270 |         LV_LOG_ERROR("png draw buff alloc %" LV_PRIu32 " failed: %s", PNG_IMAGE_SIZE(image), filename);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
lvgl/lvgl/src/libs/libpng/../../../src/misc/lv_log.h:124:99: note: in definition of macro 'LV_LOG_ERROR'
  124 | #    define LV_LOG_ERROR(...) _lv_log_add(LV_LOG_LEVEL_ERROR, LV_LOG_FILE, LV_LOG_LINE, __func__, __VA_ARGS__)
      |                                                                                                   ^~~~~~~~~~~

Notes

```bash
lvgl/lvgl/src/libs/libpng/../../../lvgl.h:30,
                 from lvgl/lvgl/src/libs/libpng/lv_libpng.c:9:
lvgl/lvgl/src/libs/libpng/lv_libpng.c: In function 'decode_png_file':
lvgl/lvgl/src/libs/libpng/lv_libpng.c:270:22: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'png_uint_32' {aka 'unsigned int'} [-Wformat=]
  270 |         LV_LOG_ERROR("png draw buff alloc %" LV_PRIu32 " failed: %s", PNG_IMAGE_SIZE(image), filename);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
lvgl/lvgl/src/libs/libpng/../../../src/misc/lv_log.h:124:99: note: in definition of macro 'LV_LOG_ERROR'
  124 | #    define LV_LOG_ERROR(...) _lv_log_add(LV_LOG_LEVEL_ERROR, LV_LOG_FILE, LV_LOG_LINE, __func__, __VA_ARGS__)
      |                                                                                                   ^~~~~~~~~~~
```

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
@kisvegabor kisvegabor merged commit bf44514 into lvgl:master Jan 23, 2024
16 checks passed
@FASTSHIFT FASTSHIFT deleted the chore_libpng branch January 25, 2024 07:34
lion2tomato pushed a commit to lion2tomato/lvgl that referenced this pull request Mar 19, 2024
VELAPLATFO-22913

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
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.

None yet

2 participants