From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17011 invoked by alias); 10 Mar 2006 15:17:00 -0000 Received: (qmail 16993 invoked by uid 48); 10 Mar 2006 15:16:56 -0000 Date: Fri, 10 Mar 2006 15:17:00 -0000 Message-ID: <20060310151656.16992.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/26632] spurious warning: value computed is not used In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-03/txt/msg01052.txt.bz2 List-Id: ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-10 15:16 ------- Hmm, what is going on here is the following. 0 ? h() : g(); is not really just that but instead: 0 ? h() : (long)g(); which then gets foldded into: (long)g(); and we warn about the cast. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c |middle-end http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26632