From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21980 invoked by alias); 3 Aug 2008 19:18:20 -0000 Received: (qmail 21971 invoked by uid 22791); 3 Aug 2008 19:18:19 -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:17:37 +0000 Received: from mx10.gnu.org ([199.232.76.166]:44463) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KPj4G-0007Fb-Bm for gcc-help@gnu.org; Sun, 03 Aug 2008 15:16:36 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KPj59-0005Ul-Kz for gcc-help@gnu.org; Sun, 03 Aug 2008 15:17:34 -0400 Received: from dessent.net ([69.60.119.225]:44896) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KPj59-0005Rk-5W for gcc-help@gnu.org; Sun, 03 Aug 2008 15:17:31 -0400 Received: from localhost.localdomain ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1KPj55-0000Vx-VP; Sun, 03 Aug 2008 19:17:28 +0000 Message-ID: <48960446.62D8A85D@dessent.net> Date: Sun, 03 Aug 2008 19:18:00 -0000 From: Brian Dessent Reply-To: gcc-help@gnu.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Ankur Arora CC: gcc-help@gnu.org Subject: Re: No warning on type truncation References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-IsSubscribed: yes 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/msg00024.txt.bz2 Ankur Arora wrote: > I cannot find any relevant option in the manual which enables > truncation warnings. > What am I missing? -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. Brian