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

nxcamera: Solve compilation errors caused by type mismatch #1948

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

yangsen5
Copy link
Contributor

@yangsen5 yangsen5 commented Aug 11, 2023

Summary

CC:  nxcamera.c nxcamera.c: In function 'show_image': nxcamera.c:85:20: error: initialization of 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Werror=incompatible-pointer-types]
   85 |   uint32_t *pbuf = pcam->bufs[buf->index];
      |                    ^~~~
cc1: all warnings being treated as errors

Impact

Testing

please ignore:

Error: /home/runner/work/nuttx-apps/nuttx-apps/apps/system/nxcamera/nxcamera.c:72:13: error: Mixed case identifier found
Error: /home/runner/work/nuttx-apps/nuttx-apps/apps/system/nxcamera/nxcamera.c:89:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx-apps/nuttx-apps/apps/system/nxcamera/nxcamera.c:115:16: error: Mixed case identifier found
Error: /home/runner/work/nuttx-apps/nuttx-apps/apps/system/nxcamera/nxcamera.c:138:16: error: Mixed case identifier found

CC:  nxcamera.c nxcamera.c: In function 'show_image':
nxcamera.c:85:20: error: initialization of 'uint32_t *' {aka 'unsigned int *'} from incompatible pointer type 'uint8_t *' {aka 'unsigned char *'} [-Werror=incompatible-pointer-types]
   85 |   uint32_t *pbuf = pcam->bufs[buf->index];
      |                    ^~~~
cc1: all warnings being treated as errors

Signed-off-by: yangsen5 <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit 7879212 into apache:master Aug 11, 2023
24 of 25 checks passed
@yangsen5 yangsen5 deleted the ys_topic branch September 6, 2024 12:49
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