fix warning

"Commas at the end of enumerator lists are a C++11 extension"