What is the purpose of anonymous enum declarations such as:
enum
enum { color = 1 };
Why not just declare int color = 1
int color = 1
If this is old code, then enum might have been used for the "enum hack".
You can learn more about the "enum hack", for example, in this link: enum hack