acassis commented on PR #12320:
URL: https://github.com/apache/nuttx/pull/12320#issuecomment-2105680367
Please fix this failure:
```
In function 'nxthread_create',
inlined from 'kthread_create_with_stack' at task/task_create.c:254:10:
Error: task/task_create.c:97:18: error: array subscript 'struct
task_tcb_s[0]' is partly outside array bounds of 'unsigned char[368]'
[-Werror=array-bounds]
97 | tcb->cmn.flags = ttype | TCB_FLAG_FREE_TCB;
| ^
In file included from task/task_create.c:33:
task/task_create.c:88:9: note: object of size 368 allocated by 'zalloc'
88 | tcb = kmm_zalloc(ret);
| ^~~~~~~~~~
Error: task/task_create.c:111:7: error: array subscript 'struct
task_tcb_s[0]' is partly outside array bounds of 'unsigned char[368]'
[-Werror=array-bounds]
111 | pid = tcb->cmn.pid;
| ~~~~^~~~~~~~~~~~~~
task/task_create.c:88:9: note: object of size 368 allocated by 'zalloc'
88 | tcb = kmm_zalloc(ret);
| ^~~~~~~~~~
In function 'nxthread_create',
inlined from 'kthread_create_with_stack' at task/task_create.c:254:10,
inlined from 'kthread_create' at task/task_create.c:285:10:
Error: task/task_create.c:97:18: error: array subscript 'struct
task_tcb_s[0]' is partly outside array bounds of 'unsigned char[368]'
[-Werror=array-bounds]
97 | tcb->cmn.flags = ttype | TCB_FLAG_FREE_TCB;
| ^
task/task_create.c:88:9: note: object of size 368 allocated by 'zalloc'
88 | tcb = kmm_zalloc(ret);
| ^~~~~~~~~~
Error: task/task_create.c:111:7: error: array subscript 'struct
task_tcb_s[0]' is partly outside array bounds of 'unsigned char[368]'
[-Werror=array-bounds]
111 | pid = tcb->cmn.pid;
| ~~~~^~~~~~~~~~~~~~
task/task_create.c:88:9: note: object of size 368 allocated by 'zalloc'
88 | tcb = kmm_zalloc(ret);
| ^~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:61: task_create.o] Error 1
make[1]: Target 'libsched.a' not remade because of errors.
```
--
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]