Skip to content
Commit 964d15a0 authored by Qingqing Li's avatar Qingqing Li Committed by Adhemerval Zanella
Browse files

elf: Fix compile error with -DNDEBUG [BZ #18755]



Compilation fails when building with -DNDEBUG after commit a3189f66.
Here is the error:

dl-close.c: In function ‘_dl_close_worker’:
dl-close.c:140:22: error: unused variable ‘nloaded’ [-Werror=unused-variable]
  140 |   const unsigned int nloaded = ns->_ns_nloaded;

Add __attribute_maybe_unused__ for‘nloaded’to fix it.

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent a6e8ceb3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment