From 873dd4273f9742e8e2f36868cd49dc83b6f199f5 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 6 May 2020 09:41:26 +0200 Subject: [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 * lib/unbuffer_output.c (gdb_unbuffer_output): Change return type to void. --- gdb/testsuite/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/testsuite/ChangeLog') 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 + * lib/unbuffer_output.c (gdb_unbuffer_output): Change return type to + void. + +2020-05-06 Tom de Vries + * lib/gdb.exp (is_stmt_addresses, hex_in_list): New proc, factored out of ... * gdb.base/async.exp: ... here. -- cgit v1.1