[PATCH 1/2] testsuite/lib/set_unbuffered_mode.c: Fix return type

Pedro Alves <[email protected]>
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
The __gdb_set_unbuffered_output constructor function in
testsuite/lib/set_unbuffered_mode.c is defined to return int (and then
does not have a return statement), when it should be defined to return
void.  This fixes it.

Change-Id: I94fc587c90601f6ed58cee31b94a414b77bbc733
---
 gdb/testsuite/lib/set_unbuffered_mode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/lib/set_unbuffered_mode.c b/gdb/testsuite/lib/set_unbuffered_mode.c
index 4fedca672dd..6d69ccabaeb 100644
--- a/gdb/testsuite/lib/set_unbuffered_mode.c
+++ b/gdb/testsuite/lib/set_unbuffered_mode.c
@@ -19,8 +19,8 @@
 
 #include <stdio.h>
 
-static int __gdb_set_unbuffered_output (void) __attribute__ ((constructor));
-static int
+static void __gdb_set_unbuffered_output (void) __attribute__ ((constructor));
+static void
 __gdb_set_unbuffered_output (void)
 {
   setvbuf (stdout, NULL, _IONBF, BUFSIZ);
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.