From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10085 invoked by alias); 3 Aug 2008 19:49:03 -0000 Received: (qmail 10072 invoked by uid 22791); 3 Aug 2008 19:49:03 -0000 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 03 Aug 2008 19:48:11 +0000 Received: from mx10.gnu.org ([199.232.76.166]:39081) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KPjXq-0002mo-7m for gcc-help@gnu.org; Sun, 03 Aug 2008 15:47:10 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KPjYk-0001RL-G1 for gcc-help@gnu.org; Sun, 03 Aug 2008 15:48:08 -0400 Received: from rv-out-0708.google.com ([209.85.198.247]:12834) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KPjYj-0001QK-JQ for gcc-help@gnu.org; Sun, 03 Aug 2008 15:48:05 -0400 Received: by rv-out-0708.google.com with SMTP id k29so1815457rvb.6 for ; Sun, 03 Aug 2008 12:48:04 -0700 (PDT) Received: by 10.140.185.1 with SMTP id i1mr7131289rvf.264.1217792884014; Sun, 03 Aug 2008 12:48:04 -0700 (PDT) Received: by 10.141.44.2 with HTTP; Sun, 3 Aug 2008 12:48:03 -0700 (PDT) Message-ID: Date: Sun, 03 Aug 2008 19:49:00 -0000 From: "Ankur Arora" To: gcc-help@gnu.org Subject: Re: No warning on type truncation In-Reply-To: <48960446.62D8A85D@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48960446.62D8A85D@dessent.net> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00025.txt.bz2 > -Wconversion with 4.4 does warn: > > tc.c: In function 'main': > tc.c:5: warning: conversion to 'int' from 'long int' may alter its value > > I think that this was added in 4.3, or rather the -Wconversion prior to > 4.3 meant something different and less useful. Yes, I did try with -Wconversion in 4.1.2 but that worked only for conversions across function calls/prototypes. Thanks for the pointer, Ankur -- 667: The neighbor of the beast.