From owner-freebsd-current@FreeBSD.ORG Mon Jun 1 09:39:12 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 789951065673 for ; Mon, 1 Jun 2009 09:39:12 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id BE61E8FC1F for ; Mon, 1 Jun 2009 09:39:11 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 01 Jun 2009 09:12:29 -0000 Received: from p54A3EC88.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.236.136] by mail.gmx.net (mp027) with SMTP; 01 Jun 2009 11:12:29 +0200 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX19paHwjQONppJZIVeu+qstlvjQ+d6xVVOO8rFiRD5 brwZIYQ2pXN/tj Message-ID: <4A239B7C.8020403@gmx.de> Date: Mon, 01 Jun 2009 11:12:28 +0200 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.21 (X11/20090412) MIME-Version: 1.0 To: rea-fbsd@codelabs.ru References: <20090601042258.909C77302F@freebsd-current.sentex.ca> <4A2360BC.8040109@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 Cc: current@freebsd.org, Doug Barton , ia64@freebsd.org, FreeBSD Tinderbox Subject: Re: [head tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 09:39:13 -0000 Eygene Ryabinkin schrieb: > This is very weird (judging by the GCC's manual) since the simplest C > program, > ----- > int main(void) > { > return 0; > } > > void foo(void) __attribute__ ((unused)) > { > return; > } > ----- > but ICC 10.x produces the same error and happily chewes __attribute__ > on the function prototype. Anyway, I see no warnings even without > '((unused)) attribute with -Wall, so '__attribute__ ((unused))' looks > like no-op nowadays. There is no warning about foo() being unused, because it is not static. Christoph