* [committed][gdb/testsuite] Fix gdb_unbuffer_output return-type
@ 2020-05-06 7:41 Tom de Vries
0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-05-06 7:41 UTC (permalink / raw)
To: gdb-patches
Hi,
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.
Committed to trunk.
Thanks,
- Tom
[gdb/testsuite] Fix gdb_unbuffer_output return-type
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/lib/unbuffer_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 <unistd.h>
#endif
-static int
+static void
gdb_unbuffer_output (void)
{
/* Always force this for Windows testing. To a native Windows
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-06 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 7:41 [committed][gdb/testsuite] Fix gdb_unbuffer_output return-type Tom de Vries
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox