From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31773 invoked by alias); 13 Feb 2009 17:57:18 -0000 Received: (qmail 31765 invoked by uid 22791); 13 Feb 2009 17:57:18 -0000 X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-forward2.uio.no (HELO mail-forward2.uio.no) (129.240.10.71) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Feb 2009 17:57:07 +0000 Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1LY2Hh-0000up-4M for gcc-help@gcc.gnu.org; Fri, 13 Feb 2009 18:57:05 +0100 Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LY2Hh-0000um-3Q for gcc-help@gcc.gnu.org; Fri, 13 Feb 2009 18:57:05 +0100 Received: from cma-eivindlm.uio.no ([129.240.223.140] helo=ichi) by mail-mx4.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1LY2Hg-00059a-S6 for gcc-help@gcc.gnu.org; Fri, 13 Feb 2009 18:57:05 +0100 Date: Fri, 13 Feb 2009 17:57:00 -0000 To: "gcc-help@gcc.gnu.org" Subject: Re: Where did the warning go? From: "Eivind LM" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <204DEA5423F3BF47A6EE88C4E2979EC66BE32F0370@nambx04.corp.adobe.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <204DEA5423F3BF47A6EE88C4E2979EC66BE32F0370@nambx04.corp.adobe.com> User-Agent: Opera Mail/9.63 (Linux) X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 8EFCB0EC879B607728810584047A2067A0D8225D X-UiO-SPAM-Test: remote_host: 129.240.223.140 spam_score: -49 maxlevel 200 minaction 2 bait 0 mail/h: 2 total 517 max/h 82 blacklist 0 greylist 0 ratelimit 0 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: 2009-02/txt/msg00093.txt.bz2 Thank you for your quick and helpful reply, Eljay! I added the -Wconversion flag, and then the warning appeared as I wanted in all g++ versions on my system :) So the problem seems to be that my g++-4.1 includes the -Wconversion by default, while the others don't. Is the set of default warnings known to vary between versions and platforms? Eivind On Fri, 13 Feb 2009 17:26:17 +0100, John (Eljay) Love-Jensen wrote: > Hi Eivind, > > Worked for me. I didn't have the exact versions of GCC you were using, > though. > > Did you specify -Wconversion? > > Sincerely, > --Eljay > >