Project

General

Profile

Actions

Bug #13115

closed

libc: variable 'readers' set but not used

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build error on SPARC:

    ../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

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

Testing done: build/install/boot

Actions

Also available in: Atom PDF