This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix build breakage in gdb/xml-support.c
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 19 Oct 2017 14:15:47 -0400
- Subject: [binutils-gdb] Fix build breakage in gdb/xml-support.c
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 63929e843d54d327676bed4d86dad280f4675547 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 63929e843d54d327676bed4d86dad280f4675547
Fix build breakage in gdb/xml-support.c
The buildbots are showing that the previous change to
xml_fetch_content_from_file causes __wur warnings/errors:
../../binutils-gdb/gdb/xml-support.c: In function gdb::unique_xmalloc_ptr<char> xml_fetch_content_from_file(const char*, void*):
../../binutils-gdb/gdb/xml-support.c:1028:43: error: ignoring return value of size_t fread(void*, size_t, size_t, FILE*), declared with attribute warn_unused_result [-Werror=unused-result]
fread (text.get (), 1, len, file.get ());
^
This commit fixes it.
gdb/ChangeLog:
2017-10-19 Pedro Alves <palves@redhat.com>
* xml-support.c (xml_fetch_content_from_file): Check fread's
return.