Skip to content

Commit d081b50

Browse files
nslowellMaureenHelm
authored andcommitted
include/posix: mark unused variables
empty inline pthread.h functions should mark unused parameters accordingly Signed-off-by: Nicholas Lowell <[email protected]>
1 parent 6c03b3a commit d081b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/posix/pthread.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ static inline int pthread_cond_init(pthread_cond_t *cv,
9898
*/
9999
static inline int pthread_cond_destroy(pthread_cond_t *cv)
100100
{
101+
ARG_UNUSED(cv);
101102
return 0;
102103
}
103104

@@ -139,6 +140,7 @@ int pthread_cond_timedwait(pthread_cond_t *cv, pthread_mutex_t *mut,
139140
*/
140141
static inline int pthread_condattr_init(pthread_condattr_t *att)
141142
{
143+
ARG_UNUSED(att);
142144
return 0;
143145
}
144146

@@ -151,6 +153,7 @@ static inline int pthread_condattr_init(pthread_condattr_t *att)
151153
*/
152154
static inline int pthread_condattr_destroy(pthread_condattr_t *att)
153155
{
156+
ARG_UNUSED(att);
154157
return 0;
155158
}
156159

@@ -464,6 +467,7 @@ static inline int pthread_equal(pthread_t pt1, pthread_t pt2)
464467
*/
465468
static inline int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
466469
{
470+
ARG_UNUSED(attr);
467471
return 0;
468472
}
469473

@@ -474,6 +478,7 @@ static inline int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
474478
*/
475479
static inline int pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
476480
{
481+
ARG_UNUSED(attr);
477482
return 0;
478483
}
479484

0 commit comments

Comments
 (0)