mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-15 07:02:15 +00:00
nxcamera: Solve compilation errors caused by type mismatch
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 <yangsen5@xiaomi.com>
This commit is contained in:
parent
3c674fb4d8
commit
78792120cd
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ err:
|
|||
|
||||
return 0;
|
||||
#else
|
||||
uint32_t *pbuf = pcam->bufs[buf->index];
|
||||
FAR uint32_t *pbuf = (FAR uint32_t *)pcam->bufs[buf->index];
|
||||
vinfo("show image from %p: %" PRIx32 " %" PRIx32, pbuf, pbuf[0], pbuf[1]);
|
||||
return 0;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue