diff options
author | Pedro Alves <palves@redhat.com> | 2017-05-18 11:37:55 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-05-18 12:56:16 +0100 |
commit | c8f6abd10d62f82874e31959bf986606bd919d39 (patch) | |
tree | 2066efee446e2f0bee0f49402d0226d03a5cbb42 /gdb/objc-lang.h | |
parent | d2a03b77450dce58f6b4f9f7fdd3c346a555bcf7 (diff) | |
download | gdb-c8f6abd10d62f82874e31959bf986606bd919d39.zip gdb-c8f6abd10d62f82874e31959bf986606bd919d39.tar.gz gdb-c8f6abd10d62f82874e31959bf986606bd919d39.tar.bz2 |
gdb.base/fileio.c: Fix several -Wreturn-type warnings
All the "test_" functions warn like:
src/gdb/testsuite/gdb.base/fileio.c: In function ‘test_close’:
src/gdb/testsuite/gdb.base/fileio.c:280:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Nothing looks at the return of these functions, so just make them
return void. While at it, "()" is not the same as "(void)" in C - fix
that too.
gdb/ChangeLog:
2017-05-18 Pedro Alves <palves@redhat.com>
* gdb.base/fileio.c (stop, test_open, test_write, test_read)
(test_lseek, test_close, test_stat, test_fstat, test_isatty)
(test_system, test_rename, test_unlink, test_time): Change
prototypes.
* gdb.base/fileio.exp (stop_msg): Adjust.
Diffstat (limited to 'gdb/objc-lang.h')
0 files changed, 0 insertions, 0 deletions