mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 05:09:00 +00:00
Found by the following compiler warning:
procfs/fs_procfsiobinfo.c: In function 'iobinfo_read':
procfs/fs_procfsiobinfo.c:344:20: error: '%-16s' directive argument is null [-Werror=format-overflow=]
344 | linesize = snprintf(iobfile->line, IOBINFO_LINELEN,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 | "\n%-16s%16lu%16lu\n",
| ~~~~~~~~~~~~~~~~~~~~~~
346 | g_iob_user_names[IOBUSER_GLOBAL],
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
347 | (unsigned long)userstats->totalconsumed,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
348 | (unsigned long)userstats->totalproduced);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
|
||
|---|---|---|
| .. | ||
| aio | ||
| binfs | ||
| cromfs | ||
| dirent | ||
| driver | ||
| fat | ||
| hostfs | ||
| inode | ||
| littlefs | ||
| mmap | ||
| mount | ||
| mqueue | ||
| nfs | ||
| nxffs | ||
| partition | ||
| procfs | ||
| romfs | ||
| semaphore | ||
| shm | ||
| smartfs | ||
| spiffs | ||
| tmpfs | ||
| unionfs | ||
| userfs | ||
| vfs | ||
| fs_initialize.c | ||
| Kconfig | ||
| Makefile | ||