From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13293 invoked by alias); 24 Dec 2008 03:34:05 -0000 Received: (qmail 13285 invoked by uid 22791); 24 Dec 2008 03:34:04 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Dec 2008 03:33:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 4200D2A964E; Tue, 23 Dec 2008 22:33:27 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cmoIYPhmeTxT; Tue, 23 Dec 2008 22:33:27 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id BF2F72A964D; Tue, 23 Dec 2008 22:33:26 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 2B1D0E7ACD; Wed, 24 Dec 2008 07:33:19 +0400 (RET) Date: Wed, 24 Dec 2008 03:34:00 -0000 From: Joel Brobecker To: Masaki Muranaka Cc: gdb-patches@sourceware.org Subject: Re: ser-mingw.c will be failed to build on GCC4.4. Message-ID: <20081224033318.GD15887@adacore.com> References: <49766CA5-7239-43DA-B018-5889387216FD@monami-software.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49766CA5-7239-43DA-B018-5889387216FD@monami-software.com> User-Agent: Mutt/1.4.2.2i 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: 2008-12/txt/msg00408.txt.bz2 > Some functions in ser-mingw.c is declared with return value, with no > return statement. For example, console_select_thread(), > pipe_select_thread(), file_select_thread(). All these functions are used as the initial function when creating threads. According to the MS documentation, the return value is used to determine whether the function was successful or not. In our case, I think that the thing to do is to add a "return 0" at the end. -- Joel