From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19883 invoked by alias); 13 Oct 2009 16:42:12 -0000 Received: (qmail 19872 invoked by uid 22791); 13 Oct 2009 16:42:10 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Oct 2009 16:42:06 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9DGfioA003469; Tue, 13 Oct 2009 12:41:44 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9DGfhP3019271; Tue, 13 Oct 2009 12:41:43 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n9DGffjG020545; Tue, 13 Oct 2009 12:41:41 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 37223C88141; Tue, 13 Oct 2009 10:41:41 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: "'Pedro Alves'" , , "'Eli Zaretskii'" , , Subject: Re: A strange gcc behavior, and an argument against -Wno-unused References: <4ACFD8B7.4090902@vmware.com> <200910101950.27107.pedro@codesourcery.com> <83d44vjaiy.fsf@gnu.org> <200910131509.40897.pedro@codesourcery.com> <05bc01ca4c1a$7110fd80$5332f880$@u-strasbg.fr> Reply-To: tromey@redhat.com Date: Tue, 13 Oct 2009 16:42:00 -0000 In-Reply-To: <05bc01ca4c1a$7110fd80$5332f880$@u-strasbg.fr> (Pierre Muller's message of "Tue, 13 Oct 2009 17:32:57 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00241.txt.bz2 >>>>> "Pierre" == Pierre Muller writes: Pierre> Isn't this going to make troubles if Pierre> a standard function is defined as a pascal procedure Pierre> i. e. with return type (void) in most implementation Pierre> but returning something else on some "exotic" system? >From what I can tell, the warning only applies to statements with no side effects, and function calls are considered to have side effects. The GCC documentation is not extremely clear on this point, I wrote a test program to try it out. Tom