diff options
author | Pedro Alves <palves@redhat.com> | 2017-05-18 11:40:08 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-05-18 12:56:38 +0100 |
commit | 59cc050d893d1e8c75547de950a35e809588f12f (patch) | |
tree | bc290206cef1b5ab97344ea246c5fb8973988901 /ld/ldlex.l | |
parent | c8f6abd10d62f82874e31959bf986606bd919d39 (diff) | |
download | gdb-59cc050d893d1e8c75547de950a35e809588f12f.zip gdb-59cc050d893d1e8c75547de950a35e809588f12f.tar.gz gdb-59cc050d893d1e8c75547de950a35e809588f12f.tar.bz2 |
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.
Diffstat (limited to 'ld/ldlex.l')
0 files changed, 0 insertions, 0 deletions