]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix gdb_unbuffer_output return-type
authorTom de Vries <tdevries@suse.de>
Wed, 6 May 2020 07:41:26 +0000 (09:41 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 6 May 2020 07:41:26 +0000 (09:41 +0200)
commit873dd4273f9742e8e2f36868cd49dc83b6f199f5
tree4a0499d8d886697d596b451c6d1edcdee74192da
parent7c99e7e2b08cf439198a79435fbee48af8dd1043
[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.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/unbuffer_output.c