Re: -Wstrict-prototypes for extensions

From: nobu.nokada@...
Date: 2004-05-25 09:16:35 UTC
List: ruby-core #2947
Hi,

At Tue, 25 May 2004 12:40:58 +0900,
Jeff Mitchell wrote in [ruby-core:02944]:
> If f() is defined after main(), it compiles with a warning,
> and "a" has a junk value.  That case is not problematic, since
> you know to move the function as you did.  However if f() is
> defined in a different file, without -Wstrict-prototypes it
> compiles with NO warning, and "a" gets a junk value.

Thank you, point taken.  But I don't feel it so cool, isn't
there any other work around?

-- 
Nobu Nakada

In This Thread

Prev Next