Subject: Re: Bluetooth protocol code
To: None <>
From: None <>
List: tech-kern
Date: 12/20/2005 11:32:21
On Tue, Dec 20, 2005 at 05:11:35AM -0500, der Mouse wrote:
> gcc has an unforunate misfeature that silently rewrites the former to
> the latter if a suitable prototype declaration is in scope, thus
> encouraging the writing of such code, but it's gcc, not C.

That's fixed with GCC 3.4: -Wold-style-definition
Most importantly, it cataches int foo(){} vs. int foo(void){}