3ba18e5407
aio.c: In function ‘check_done’: aio.c:158:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=] 158 | printf(" list[%d]. result = %d\n", i, aiocbp->aio_result); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | int ssize_t {aka volatile long int} | %ld aio.c: In function ‘remove_done’: aio.c:222:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘ssize_t’ {aka ‘volatile long int’} [-Wformat=] 222 | printf(" list[%d]. result = %d\n", i, aiocbp->aio_result); | ~^ ~~~~~~~~~~~~~~~~~~ | | | | int ssize_t {aka volatile long int} | %ld sporadic2.c: In function ‘sporadic2_test’: sporadic2.c:313:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] 313 | printf("Sporadic 1: prio high %d, low %d, repl %" PRIi32 " ns\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdint.h:35, from /home/xiaoxiang/backup/os/nuttx/nuttx/include/sys/types.h:32, from /home/xiaoxiang/backup/os/nuttx/nuttx/include/stdio.h:30, from sporadic2.c:27: /home/xiaoxiang/backup/os/nuttx/nuttx/include/arch/inttypes.h:51:24: note: format string is defined here 51 | # define PRIi32 "i" sporadic2.c:315:10: warning: format ‘%i’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] 315 | printf("Sporadic 2: prio high %d, low %d, repl %" PRIi32 " ns\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> |
||
---|---|---|
.. | ||
aio.c | ||
barrier.c | ||
cancel.c | ||
cond.c | ||
dev_null.c | ||
fpu.c | ||
getopt.c | ||
Kconfig | ||
Make.defs | ||
Makefile | ||
mqueue.c | ||
mutex.c | ||
nsem.c | ||
ostest_main.c | ||
ostest.h | ||
posixtimer.c | ||
prioinherit.c | ||
pthread_cleanup.c | ||
pthread_rwlock_cancel.c | ||
pthread_rwlock.c | ||
restart.c | ||
rmutex.c | ||
robust.c | ||
roundrobin.c | ||
sem.c | ||
semtimed.c | ||
setvbuf.c | ||
sigev_thread.c | ||
sighand.c | ||
signest.c | ||
sigprocmask.c | ||
specific.c | ||
sporadic2.c | ||
sporadic.c | ||
suspend.c | ||
timedmqueue.c | ||
timedmutex.c | ||
timedwait.c | ||
tls.c | ||
vfork.c | ||
waitpid.c |