This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb.base/fileio.c: Fix several -Wmaybe-uninitialized warnings
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 18 May 2017 10:35:49 -0400
- Subject: [binutils-gdb] gdb.base/fileio.c: Fix several -Wmaybe-uninitialized warnings
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 59cc050d893d1e8c75547de950a35e809588f12f ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 59cc050d893d1e8c75547de950a35e809588f12f
gdb.base/fileio.c: Fix several -Wmaybe-uninitialized warnings
src/gdb/testsuite/gdb.base/fileio.c: In function test_write:
src/gdb/testsuite/gdb.base/fileio.c:158:5: warning: ret may be used uninitialized in this function [-Wmaybe-uninitialized]
printf ("write 1: ret = %d, errno = %d\n", ret, errno);
^
gdb/ChangeLog:
2017-05-18 Pedro Alves <palves@redhat.com>
* gdb.base/fileio.c (test_write, test_read, test_close)
(test_fstat): Don't print 'ret' in the fail path.