THRIFT-2784 Eliminate compiler warnings in generated C++ code

remove unused MyEnum5 and add -pedantic to lib/cpp/test/Makefile.am