The warning says that you can't have scoped enums with the class keyword. That would imply to me that you can get rid of the warning by not including class in your definition of the enum.
Don't know how you've actually implemented your enum declaration since you stated that "my code is something like"; if its significantly different, you may get different results.
1 2 3 4 5
enum Enum1; // Illegal in C++03 and C++11; the underlying type cannot be determined.
enum Enum2 : unsignedint; // Legal in C++11, the underlying type is explicitly specified.
enumclass Enum3; // Legal in C++11, the underlying type is int.
enumclass Enum4 : unsignedint; // Legal in C++11.
enum Enum2 : unsignedshort; // Illegal in C++11, because Enum2 was previously declared with a different underlying type.
Referenced from http://en.wikipedia.org/wiki/C++11
Other than that, if you are truly on GCC 4.8.1 and have enabled "-std=c++11", I'm not sure where to go from there.
Maybe someone else will give us input.
Edited:
"Check the type you are deriving the enum class from exists. In this case, there was no typedef specified for int8"