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

remove unused MyEnum5 and add -pedantic to lib/cpp/test/Makefile.am
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 751b0b3..f15b0c1 100755
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -268,7 +268,7 @@
 
 AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src
 AM_LDFLAGS = $(BOOST_LDFLAGS)
-AM_CXXFLAGS = -Wall -Wextra
+AM_CXXFLAGS = -Wall -Wextra -pedantic
 
 clean-local:
 	$(RM) -r gen-cpp
diff --git a/test/EnumTest.thrift b/test/EnumTest.thrift
index deb852f..6201923 100644
--- a/test/EnumTest.thrift
+++ b/test/EnumTest.thrift
@@ -64,12 +64,6 @@
   // represented with an i32.
 }
 
-enum MyEnum5 {
-  // attempting to explicitly use values out of the i32 range will also fail
-  // ME5_A = 0x80000000,
-  // ME5_B = 0x100000000,
-}
-
 struct MyStruct {
   1: MyEnum2 me2_2 = MyEnum1.ME2_2
   2: MyEnum3 me3_n2 = MyEnum3.ME3_N2