aboutsummaryrefslogtreecommitdiff
path: root/nptl_db
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-10-08 12:46:03 -0600
committerMartin Sebor <msebor@redhat.com>2020-10-08 12:46:03 -0600
commit3eff7504cab0c406dbd27a1b07a413dafc39634d (patch)
treea70629bfa34128fed51a2c9058e26fd9423cd043 /nptl_db
parent50b1b7a3905cbcdfbcc7eab335aa81478d711d1a (diff)
downloadglibc-3eff7504cab0c406dbd27a1b07a413dafc39634d.zip
glibc-3eff7504cab0c406dbd27a1b07a413dafc39634d.tar.gz
glibc-3eff7504cab0c406dbd27a1b07a413dafc39634d.tar.bz2
Avoid GCC 11 -Warray-parameter warnings [BZ #26686].
Building Glibc with the latest GCC 11 also shows a couple of instances of the new -Warray-parameter warning in the thread db APIs. To avoid these, this patch changes the deefinitions of the two functions to match their definitions.
Diffstat (limited to 'nptl_db')
-rw-r--r--nptl_db/fetch-value.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c
index 128d736..8f1ff74 100644
--- a/nptl_db/fetch-value.c
+++ b/nptl_db/fetch-value.c
@@ -140,7 +140,7 @@ _td_fetch_value (td_thragent_t *ta,
td_err_e
_td_store_value (td_thragent_t *ta,
- uint32_t desc[2], int descriptor_name, psaddr_t idx,
+ db_desc_t desc, int descriptor_name, psaddr_t idx,
psaddr_t address, psaddr_t widened_value)
{
ps_err_e err;
@@ -240,7 +240,7 @@ _td_fetch_value_local (td_thragent_t *ta,
td_err_e
_td_store_value_local (td_thragent_t *ta,
- uint32_t desc[2], int descriptor_name, psaddr_t idx,
+ db_desc_t desc, int descriptor_name, psaddr_t idx,
void *address, psaddr_t widened_value)
{
td_err_e terr = _td_locate_field (ta, desc, descriptor_name, idx, &address);