diff options
author | Enji Cooper <yaneurabeya@gmail.com> | 2019-01-20 10:39:42 -0800 |
---|---|---|
committer | ngie-eign <1574099+ngie-eign@users.noreply.github.com> | 2019-01-20 16:16:36 -0800 |
commit | 434f7c3a48a8a9d926626500a35f4a7eab32d598 (patch) | |
tree | a2bde5bed43aa0378fed9dd9317bf2beee2c0ba0 | |
parent | c2fa3ac6e13ac5481103e498479a206375db71e1 (diff) | |
download | ltp-434f7c3a48a8a9d926626500a35f4a7eab32d598.tar.gz |
Annotate the unused variables with `LTP_ATTRIBUTE_UNUSED` on FreeBSD
This fixes `-Wunused` issues.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
-rw-r--r-- | testcases/open_posix_testsuite/include/proc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testcases/open_posix_testsuite/include/proc.h b/testcases/open_posix_testsuite/include/proc.h index bcb76bb28..4ff42ff24 100644 --- a/testcases/open_posix_testsuite/include/proc.h +++ b/testcases/open_posix_testsuite/include/proc.h @@ -13,6 +13,8 @@ #include <time.h> +#include "posixtest.h" + #ifdef __linux__ # include <errno.h> # include <string.h> @@ -56,8 +58,8 @@ int tst_process_state_wait3(pid_t pid, const char state, return 1; } #else -int tst_process_state_wait3(pid_t pid, const char state, - long maxwait_s) +int tst_process_state_wait3(pid_t pid LTP_ATTRIBUTE_UNUSED, + const char state LTP_ATTRIBUTE_UNUSED, long maxwait_s) { struct timespec maxwait_ts; @@ -68,3 +70,4 @@ int tst_process_state_wait3(pid_t pid, const char state, return 0; } #endif + |