diff options
author | Tom de Vries <tdevries@suse.de> | 2020-05-06 09:41:26 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-05-06 09:41:26 +0200 |
commit | 873dd4273f9742e8e2f36868cd49dc83b6f199f5 (patch) | |
tree | 4a0499d8d886697d596b451c6d1edcdee74192da /gdb/testsuite/ChangeLog | |
parent | 7c99e7e2b08cf439198a79435fbee48af8dd1043 (diff) | |
download | gdb-873dd4273f9742e8e2f36868cd49dc83b6f199f5.zip gdb-873dd4273f9742e8e2f36868cd49dc83b6f199f5.tar.gz gdb-873dd4273f9742e8e2f36868cd49dc83b6f199f5.tar.bz2 |
[gdb/testsuite] Fix gdb_unbuffer_output return-type
When running test-case gdb.base/shlib-call.exp with clang, we get:
...
gdb compile failed, In file included from shmain.c:6:
unbuffer_output.c:39:1: warning:
control reaches end of non-void function [-Wreturn-type]
}
^
1 warning generated.
...
Fix this by changing the return-type to void.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-05-06 Tom de Vries <tdevries@suse.de>
* lib/unbuffer_output.c (gdb_unbuffer_output): Change return type to
void.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4ffff5d..d04ce49 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-05-06 Tom de Vries <tdevries@suse.de> + * lib/unbuffer_output.c (gdb_unbuffer_output): Change return type to + void. + +2020-05-06 Tom de Vries <tdevries@suse.de> + * lib/gdb.exp (is_stmt_addresses, hex_in_list): New proc, factored out of ... * gdb.base/async.exp: ... here. |