[PATCH] Get rid of Werror=maybe-uninitialized in res_send.c.
Stefan Liebler
stli@linux.ibm.com
Tue Dec 3 08:50:00 GMT 2019
Hi,
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.
Bye
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20191202_werror_res_send.patch
Type: text/x-patch
Size: 1522 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20191203/f9fc5f21/attachment.bin>
More information about the Libc-alpha
mailing list