From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31715 invoked by alias); 14 Jan 2009 19:55:17 -0000 Received: (qmail 31707 invoked by uid 22791); 14 Jan 2009 19:55:16 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f13.google.com (HELO mail-bw0-f13.google.com) (209.85.218.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jan 2009 19:54:45 +0000 Received: by bwz6 with SMTP id 6so2159609bwz.0 for ; Wed, 14 Jan 2009 11:54:40 -0800 (PST) Received: by 10.180.214.13 with SMTP id m13mr131735bkg.157.1231962879793; Wed, 14 Jan 2009 11:54:39 -0800 (PST) Received: by 10.181.156.3 with HTTP; Wed, 14 Jan 2009 11:54:39 -0800 (PST) Message-ID: <90baa01f0901141154l3d07a26cu67b976a44d39a8fb@mail.gmail.com> Date: Wed, 14 Jan 2009 19:55:00 -0000 From: "Kai Tietz" To: gdb-patches@sourceware.org Subject: [patch]: Fix build for w64 in ser-mingw.c MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00329.txt.bz2 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 * 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