From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3904 invoked by alias); 17 Oct 2007 14:08:22 -0000 Received: (qmail 3896 invoked by uid 22791); 17 Oct 2007 14:08:22 -0000 X-Spam-Check-By: sourceware.org Received: from cluster-e.mailcontrol.com (HELO cluster-e.mailcontrol.com) (217.79.216.190) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Oct 2007 14:08:20 +0000 Received: from rly15e.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly15e.srv.mailcontrol.com (MailControl) with ESMTP id l9HE8DY9031959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 17 Oct 2007 15:08:14 +0100 Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly15e.srv.mailcontrol.com (MailControl) id l9HE7H5s025533 for gcc-help@gcc.gnu.org; Wed, 17 Oct 2007 15:07:17 +0100 Received: from c2-ex001.groupinfra.com ([212.123.206.140]) by rly15e-eth0.srv.mailcontrol.com (envelope-sender jiri.humpolicek@acision.com) (MIMEDefang) with ESMTP id l9HE0XI3001098; Wed, 17 Oct 2007 15:07:17 +0100 (BST) Received: from cz-ex001.groupinfra.com ([158.234.170.116]) by c2-ex001.groupinfra.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Oct 2007 16:05:06 +0200 Received: from cz-ex002.groupinfra.com ([158.234.170.118]) by cz-ex001.groupinfra.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 17 Oct 2007 16:05:06 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: gcc warnings Date: Wed, 17 Oct 2007 14:28:00 -0000 Message-ID: <53248A54C3B3EC4EAAD993D10A6DD01203C5DDB3@cz-ex002.groupinfra.com> References: <53248A54C3B3EC4EAAD993D10A6DD01203C5DAB7@cz-ex002.groupinfra.com> <47160B5F.9080009@computer.org> From: "Humpolicek, Jiri - Acision" To: "Tim Prince" Cc: 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: 2007-10/txt/msg00219.txt.bz2 >> I have, from my point of view, strange problem. I want to >tell gcc to report all compilation warnings, especially warnings about >assigment from variable of greater type to variable with smaller type. For >example, when I write following code and compile it with next command no >warning is reported: >>=20 >> c++ -o test test.cpp -Wall -Wextra -Wconversion -pedantic >>=20 >You don't say anything about what problem you encounter, or what >platform you use. Your source code doesn't look like a suitable >replacement for a test command which may be implemented in your shell, >so it would be simpler to choose a non-conflicting name. I don't understand you. My problem is, that I am not able to force gcc to report warnings when I assign bigger type to smaller type. So I decided to ask someone to help me or give me any explanations of this behaviour. Jiri Humpolicek This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. This email contains confidential information. It should not be= copied, disclosed to, retained or used by, any party other than the intend= ed recipient. Any unauthorised distribution, dissemination or copying of th= is E-mail or its attachments, and/or any use of any information contained i= n them, is strictly prohibited and may be illegal. If you are not an intend= ed recipient then please promptly delete this e-mail and any attachment and= all copies and inform the sender directly via email. Any emails that you s= end to us may be monitored by systems or persons other than the named commu= nicant for the purposes of ascertaining whether the communication complies = with the law and company policies.