[rtems commit] pthreadcreate.c: Silence unused variable warning ( CID 1399716)
    Joel Sherrill 
    joel at rtems.org
       
    Mon Mar 25 21:28:15 UTC 2019
    
    
  
Module:    rtems
Branch:    master
Commit:    db23c3c43eb9e6c0515d5de54bbec866af291972
Changeset: http://git.rtems.org/rtems/commit/?id=db23c3c43eb9e6c0515d5de54bbec866af291972
Author:    Joel Sherrill <joel at rtems.org>
Date:      Fri Mar 15 12:16:48 2019 -0500
pthreadcreate.c: Silence unused variable warning (CID 1399716)
---
 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:
    
    
More information about the vc
mailing list