From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4655 invoked by alias); 1 Dec 2008 10:11:30 -0000 Received: (qmail 4647 invoked by uid 22791); 1 Dec 2008 10:11:29 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.242) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Dec 2008 10:10:49 +0000 Received: by an-out-0708.google.com with SMTP id d14so811576and.26 for ; Mon, 01 Dec 2008 02:10:47 -0800 (PST) Received: by 10.100.105.9 with SMTP id d9mr5587090anc.142.1228126247236; Mon, 01 Dec 2008 02:10:47 -0800 (PST) Received: from ?18.138.6.37? (NORTHWEST-THIRTYFIVE-TWO-NINETY-TWO.MIT.EDU [18.138.6.37]) by mx.google.com with ESMTPS id c28sm5020486anc.27.2008.12.01.02.10.45 (version=SSLv3 cipher=RC4-MD5); Mon, 01 Dec 2008 02:10:46 -0800 (PST) Message-ID: <4933B81C.9030108@gmail.com> Date: Mon, 01 Dec 2008 10:11:00 -0000 From: Yang Zhang User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: GCC-help Subject: Suppressing particular warnings for particular lines of code Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-12/txt/msg00001.txt.bz2 In Java, you can insert @SuppressWarnings(...) annotations before a line to tell javac to suppress certain warnings for that line. Is there anything similar for gcc? -- Yang Zhang http://www.mit.edu/~y_z/