-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove <nuttx/xxx.h> in stdio need add depend header file
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 ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c:23:13: warning: implicit declaration of function ‘pthread_sigmask’ [-Wimplicit-function-declaration] 23 | if (pthread_sigmask(SIG_SETMASK, &set, NULL) != 0) { | ^~~~~~~~~~~~~~~ Signed-off-by: anjiahao <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
testing/cmocka/0007-remove-nuttx-xxx.h-in-stdio-need-add-depend-header-f.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff --color -ur cmocka_bak/src/cmocka.c cmocka/src/cmocka.c | ||
--- cmocka_bak/src/cmocka.c 2024-11-14 15:50:02.013648944 +0800 | ||
+++ cmocka/src/cmocka.c 2024-11-14 15:50:23.136212001 +0800 | ||
@@ -48,6 +48,7 @@ | ||
#include <regex.h> | ||
#include <mqueue.h> | ||
#include <fcntl.h> | ||
+#include <unistd.h> | ||
|
||
/* | ||
* This allows to add a platform specific header file. Some embedded platforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From 5965c3acdfa5b41ac5270314b7bd6f1d3d980827 Mon Sep 17 00:00:00 2001 | ||
From: anjiahao <[email protected]> | ||
Date: Thu, 14 Nov 2024 16:10:41 +0800 | ||
Subject: [PATCH] header warning fix | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c:23:13: warning: implicit declaration of function ‘pthread_sigmask’ [-Wimplicit-function-declaration] | ||
23 | if (pthread_sigmask(SIG_SETMASK, &set, NULL) != 0) { | ||
| ^~~~~~~~~~~~~~~ | ||
|
||
Change-Id: I7c6553fa5e8001de8e9b560401176b277988f256 | ||
Signed-off-by: anjiahao <[email protected]> | ||
--- | ||
.../conformance/interfaces/pthread_sigmask/15-1.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c | ||
index d396f3be9..38444c4a1 100644 | ||
--- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c | ||
+++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/15-1.c | ||
@@ -12,6 +12,7 @@ | ||
|
||
#include <stdio.h> | ||
#include <signal.h> | ||
+#include <pthread.h> | ||
#include "posixtest.h" | ||
|
||
int main(void) | ||
-- | ||
2.43.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters