pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty Controlled Statements


From: David Philippi
Subject: Re: Empty Controlled Statements
Date: Tue, 1 Oct 2002 10:58:43 +0200
User-agent: KMail/1.4.1

On Monday 30 September 2002 20:04, Neil Hotmail wrote:
> Windows gives quite a few of these errors, are they valid?

They are warnings and more or less valid.

> This one in particular looks very confusing:
> D:\Pingus\CVS\Games\Pingus\src\worldobjsdata\exit_data.cxx(38) : warning
> C4390: ';' : empty controlled statement found; is this the intent?
> There are also quite a few
> if(x); if(y);
> statements, what is there purpose? Is it just to stop unused argument
> prompting?

Those empty if are the reason - just replace them with 
UNUSED_ARG(x); UNUSED_ARG(y);
and all compilers should be happy.

Bye David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]