Re: [head tinderbox] failure on ia64/ia64

From: Christoph Mallon <christoph.mallon_at_gmx.de>
Date: Mon, 01 Jun 2009 11:12:28 +0200
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
Received on Mon Jun 01 2009 - 07:39:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:48 UTC