Page 1 of 1

SB-3: Salvo: OS_WaitXyz()and "inappropriate 'else' "

PostPosted: Thu Jan 11, 2001 9:25 am
by Salvo Tech Support
Applies To

Salvo v2.1, all versions.

Description of Problem

The compiler will generate an "inappropriate 'else' " error when it encounters the following construct:

code:
if ( test )
OS_WaitXyz(eID, label);
else

Suggested Workaround

In the salvo.h source file, remove the ';' at the end of each OS_WaitXyz() macro.

Or, use curly braces around OS_WaitXyz(), like this:

code:
if ( test ) {
OS_WaitXyz(eID, label);
}
else

Fixed In

Salvo v2.2.0.

[This message has been edited by Salvo Tech Support (edited January 13, 2002).]