about summary refs log tree commit diff
path: root/libio/iovsprintf.c
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2020-01-20 10:55:55 +0100
committerStefan Liebler <stli@linux.ibm.com>2020-01-20 10:57:08 +0100
commitaba12794dc0d1835b9652f34df722970b1bd3397 (patch)
tree7cc58cd7f1286cf2a52cc78d60f74dd5902bb4a1 /libio/iovsprintf.c
parent3cb57302ed6acc34409c71cfd99e4f22359d6533 (diff)
downloadglibc-aba12794dc0d1835b9652f34df722970b1bd3397.tar.gz
glibc-aba12794dc0d1835b9652f34df722970b1bd3397.tar.xz
glibc-aba12794dc0d1835b9652f34df722970b1bd3397.zip
Get rid of Werror=maybe-uninitialized in res_send.c.
The commit 446997ff1433d33452b81dfa9e626b8dccf101a4 introduced
this new usage of resplen. If build with gcc 9 -march>=z13 on s390x,
the following warning occurs:
res_send.c: In function ‘__res_context_send’:
res_send.c:539:6: error: ‘resplen’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  539 |   if (resplen > HFIXEDSZ)
      |      ^

Therefore this patch adds a further DIAG_IGNORE_NEEDS_COMMENT in the
same way as it was previously done for usages of resplen or n.
See commit d1bc2cbbed9aea2017ef941f63c8786571da5b4f.
Diffstat (limited to 'libio/iovsprintf.c')
0 files changed, 0 insertions, 0 deletions