Removed extra declaration of int checkAttribute(const char * att) because of Linux gcc-4.4.7 warning.
Commented out typedef in enum to avoid warning under Linux gcc-4.4.7.