Maciej Sobczak expounded in news:be7c80ac-3fce-4779-8542- 115567f649de@g17g2000yqe.googlegroups.com: > On 16 Sie, 16:54, Warren wrote: > >> > const int MC_CTL_LOCAL_C �= 0x80; >> > and so on. > >> Another approach is to declare them as enums. But this >> is unhelpful because they are all implemented as int's. > > No. Enums are separate types. They are considered different "types" but (in C at least), they're implemented as ints. IOW, you can't mix the enums but you can supply an enum in an int argument. >> Further, the switch statement doesn't tell you about the >> cases which are missing. > > Try g++ -Wswitch. GCC extension. Try it on HP or AIX C compiler. Warren