-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdio.h Header file adjustment related #2852
base: master
Are you sure you want to change the base?
Conversation
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides a link to the PR and mentions Here's what's missing:
The provided link to the PR is helpful, but the PR description itself needs to be self-contained and meet all the listed requirements. Relying on reviewers to click through to another page to gather essential information is not good practice. |
Error: cmocka/src/cmocka.c:2568:9: error: implicit declaration of function 'ftruncate'; did you mean 'strncat'? [-Werror=implicit-function-declaration] 2568 | ftruncate(fileno(fp), ftell(fp)); | ^~~~~~~~~ | strncat Signed-off-by: anjiahao <anjiahao@xiaomi.com>
@@ -43,6 +43,8 @@ if(CONFIG_TESTING_CMOCKA) | |||
${CMAKE_CURRENT_LIST_DIR}/0005-cmocka-cmocka_private-fix-warning-in-cmocka_private.patch | |||
&& patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/cmocka < | |||
${CMAKE_CURRENT_LIST_DIR}/0006-fix-linux-risc-v-compile-error-list_initialize.patch | |||
&& patch -p0 -d ${CMAKE_CURRENT_LIST_DIR}/cmocka < |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but no compiler error happen in cmocka:
https://github.com/apache/nuttx/actions/runs/11834392207/job/32975068050?pr=14697
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i test in linux, ftruncate is need include <unistd.h>. ftruncate is not use in cmocka mainline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's update to cmocka new version instead
Summary
stdio.h Header file adjustment related
Impact
all used stdio
Testing
sim:citest build
apache/nuttx#14697