]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid GCC 11 -Warray-parameter warnings [BZ #26686].
authorMartin Sebor <msebor@redhat.com>
Thu, 8 Oct 2020 18:46:03 +0000 (12:46 -0600)
committerMartin Sebor <msebor@redhat.com>
Thu, 8 Oct 2020 18:46:03 +0000 (12:46 -0600)
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.

nptl_db/fetch-value.c

index 128d736adb9fededf9ae243b70c281343aeb4ee8..8f1ff74fd0075232dd5fbbe6acbfb141df7b678d 100644 (file)
@@ -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);