[PATCH 1/4] pthreadcreate.c: Silence unused variable warning (CID 1399716)
Joel Sherrill
joel at rtems.org
Fri Mar 22 13:30:09 UTC 2019
---
cpukit/posix/src/pthreadcreate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cpukit/posix/src/pthreadcreate.c b/cpukit/posix/src/pthreadcreate.c
index b70be00..211b2cf 100644
--- a/cpukit/posix/src/pthreadcreate.c
+++ b/cpukit/posix/src/pthreadcreate.c
@@ -137,6 +137,7 @@ int pthread_create(
&schedparam
);
_Assert( error == 0 );
+ (void) error; /* error only used when debug enabled */
break;
case PTHREAD_EXPLICIT_SCHED:
--
1.8.3.1
More information about the devel
mailing list