Project

General

Profile

Bug #13115

Updated by Toomas Soome about 1 year ago

Build error on SPARC: 

 <pre> 
     ../port/threads/rwlock.c: In function 'shared_rwlock_lock': 
     ../port/threads/rwlock.c:508:11: error: variable 'readers' set but not used [-Werror=unused-but-set-variable] 
       uint32_t readers; 
                ^~~~~~~ 
     cc1: all warnings being treated as errors 

 </pre> 

 Since this code is used with THREAD_DEBUG, we should use preprocessor conditionals here. 

 Testing done: build/install/boot

Back