anchao opened a new pull request, #8162: URL: https://github.com/apache/nuttx/pull/8162
## Summary fs/mmap: fix compile warning if set the optimize level to O3 ``` | $ gcc -c "-O3" -Wall -isystem include -D__NuttX__ -D__KERNEL__ -I fs -I sched fs/mmap/fs_mmap.c -o fs_mmap.o | include/sys/mman.h: In function ‘mmap’: | fs/mmap/fs_mmap.c:259:13: warning: ‘mapped’ may be used uninitialized in this function [-Wmaybe-uninitialized] | 259 | FAR void *mapped; | | ^~~~~~ ``` Signed-off-by: chao an <[email protected]> ## Impact N/A ## Testing ci-check -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
