[patch]: Fix build for w64 in ser-mingw.c

Kai Tietz ktietz70@googlemail.com
Wed Jan 14 19:55:00 GMT 2009


Hello,

while testing the gdb support for the new w64 I found a problem in
mingw-ser.c, which produced warnings about functions that aren't
returning, but have a return type specified.

ChangeLog

2009-01-14  Kai Tietz  <kai.tietz@onevision.com>

	* mingw-ser.c (console_select_thread): Add return to make
	compiler happy.
	(pipe_select_thread): Likewise.
	(file_select_thread): Likewise.

Tested on x86_64-pc-mingw32 and for i686-pc-cygwin

Ok for apply?

Cheers,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Index: src/gdb/ser-mingw.c
===================================================================
--- src.orig/gdb/ser-mingw.c
+++ src/gdb/ser-mingw.c
@@ -573,6 +573,7 @@ console_select_thread (void *arg)

       SetEvent(state->have_stopped);
     }
+  return 0;
 }

 static int
@@ -633,6 +634,7 @@ pipe_select_thread (void *arg)

       SetEvent (state->have_stopped);
     }
+  return 0;
 }

 static DWORD WINAPI
@@ -657,6 +659,7 @@ file_select_thread (void *arg)

       SetEvent (state->have_stopped);
     }
+  return 0;
 }

 static void



More information about the Gdb-patches mailing list