From: Tom de Vries Date: Wed, 6 May 2020 07:41:26 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb_unbuffer_output return-type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=873dd4273f9742e8e2f36868cd49dc83b6f199f5;p=binutils-gdb.git [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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4ffff5dcbe5..d04ce49ade9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gdb/testsuite/lib/unbuffer_output.c b/gdb/testsuite/lib/unbuffer_output.c index d272f5e3a9c..afb6f4188b4 100644 --- a/gdb/testsuite/lib/unbuffer_output.c +++ b/gdb/testsuite/lib/unbuffer_output.c @@ -22,7 +22,7 @@ #include #endif -static int +static void gdb_unbuffer_output (void) { /* Always force this for Windows testing. To a native Windows