public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Avoid GCC 11 -Warray-parameter warnings [BZ #26686].
@ 2020-10-08 18:56 Martin Sebor
0 siblings, 0 replies; only message in thread
From: Martin Sebor @ 2020-10-08 18:56 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3eff7504cab0c406dbd27a1b07a413dafc39634d
commit 3eff7504cab0c406dbd27a1b07a413dafc39634d
Author: Martin Sebor <msebor@redhat.com>
Date: Thu Oct 8 12:46:03 2020 -0600
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.
Diff:
---
nptl_db/fetch-value.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c
index 128d736adb..8f1ff74fd0 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-08 18:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08 18:56 [glibc] Avoid GCC 11 -Warray-parameter warnings [BZ #26686] Martin Sebor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).