At 01:26 PM 10/30/2003, Mike Margerum wrote:
A bunch of the enums like PhoneAppDialMethodEnum have the last entry ending with a comma which is causing the compiler to complain. What can i do to remedy this?

typedef enum
{
PhoneAppDialMethodNormal = 0, // Normal PhnLibDial()
PhoneAppDialMethodSATSetupCall, // Use SIM Toolkit and respond "affirmative"
// to the SIM's request to set up a call.
}
PhoneAppDialMethodEnum;

The trailing comma is legal, according to the ISO C 1999 standard.


In CW, you can turn off this warning in the C/C++ Warnings panel -- just uncheck the "Extra Commas" setting.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to