summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2014-10-21 21:28:04 +0200
committerRoger Meier <roger@apache.org>2014-10-21 21:28:04 +0200
commitcb0754db1e73e7ea347aae07e0ef1de9792ef99e (patch)
tree6a66388dd8d562d86bd1a227475e7d4a2976185e
parent9b0c47f77e48d3972d275112e5a8cf1ff05d65be (diff)
downloadthrift-cb0754db1e73e7ea347aae07e0ef1de9792ef99e.tar.gz
THRIFT-2784 Eliminate compiler warnings in generated C++ code
remove unused MyEnum5 and add -pedantic to lib/cpp/test/Makefile.am
-rwxr-xr-xlib/cpp/test/Makefile.am2
-rw-r--r--test/EnumTest.thrift6
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 751b0b3ed..f15b0c174 100755
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -268,7 +268,7 @@ gen-cpp/ChildService.cpp: processor/proc.thrift
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 deb852f37..6201923e0 100644
--- a/test/EnumTest.thrift
+++ b/test/EnumTest.thrift
@@ -64,12 +64,6 @@ enum MyEnum4 {
// 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