From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4031 invoked by alias); 17 Apr 2004 16:59:38 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 4017 invoked from network); 17 Apr 2004 16:59:35 -0000 Received: from unknown (HELO smtp02.mrf.mail.rcn.net) (207.172.4.61) by sources.redhat.com with SMTP; 17 Apr 2004 16:59:35 -0000 Received: from 66-44-0-208.s208.apx1.lnh.md.dialup.rcn.com ([66.44.0.208] helo=localhost) by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.35 #4) id 1BEtAE-0002UU-00 for gcc-help@gcc.gnu.org; Sat, 17 Apr 2004 12:59:35 -0400 Date: Sat, 17 Apr 2004 16:59:00 -0000 Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: -Wconversion From: Steven J Abner To: gcc-help@gcc.gnu.org Content-Transfer-Encoding: 7bit Message-Id: <954D07EC-9090-11D8-B1E3-0050E4396B62@starpower.net> X-SW-Source: 2004-04/txt/msg00227.txt.bz2 Hi I would like to use -Wconversion in building, however I've searched to find a way (like #pragma unused) to shut of the warning for a specific case. Example: warning: passing arg 2 of 'chmod' with different width due to prototype I'm satisfied that there is no problem, so for the function or the location or completed source file that uses 'chmod' I'd like to stop the warning, but use a blanket flag -Wconversion for any new code created within a project or that source file. Is this possible? or is what I'm asking defeating the purpose? Is there a directive that I can place at the head of the source file that can be removed if new code is added? Thanks