Pumpkin User Forums
  Service Bulletins
  SB-3: Salvo: OS_WaitXyz()and "inappropriate 'else' "

Post New Topic  
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   SB-3: Salvo: OS_WaitXyz()and "inappropriate 'else' "
Salvo Tech Support
Moderator
posted January 11, 2001 09:25     Click Here to See the Profile for Salvo Tech Support     Edit/Delete Message   Reply w/Quote
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).]

IP: 63.203.232.106

All times are ET

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  
Hop to:

Contact Us | Pumpkin Home Page

©2000-2008 Pumpkin, Inc. All Rights Reserved. Pumpkin and the Pumpkin logo, Salvo and the Salvo logo, The RTOS that runs in tiny places, CubeSat Kit and the CubeSat Kit logo are all trademarks of Pumpkin, Inc. All other trademarks are the properties of their respective owners.


Ultimate Bulletin Board 5.46a