Thrift-1462: add more strict compiler flags
Reverting patch due to it breaking compilers older than 4.4 (os x, centos 5.x, etc)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1213901 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/Makefile.am b/lib/cpp/Makefile.am
index 55124ac..f8093ba 100644
--- a/lib/cpp/Makefile.am
+++ b/lib/cpp/Makefile.am
@@ -40,7 +40,7 @@
pkgconfig_DATA += thrift-z.pc
endif
-AM_CXXFLAGS = -Wall -Wextra -std=c++0x -pedantic
+AM_CXXFLAGS = -Wall
AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
AM_LDFLAGS = $(BOOST_LDFLAGS)
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index a428cd9..1626c6e 100644
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -182,7 +182,7 @@
AM_CPPFLAGS = $(BOOST_CPPFLAGS)
AM_LDFLAGS = $(BOOST_LDFLAGS)
-AM_CXXFLAGS = -Wall -Wextra -std=c++0x -pedantic
+AM_CXXFLAGS = -Wall
clean-local:
$(RM) -r gen-cpp
diff --git a/test/cpp/Makefile.am b/test/cpp/Makefile.am
index b7ef15b..95574fc 100755
--- a/test/cpp/Makefile.am
+++ b/test/cpp/Makefile.am
@@ -96,7 +96,7 @@
-I$(top_srcdir)/lib/cpp/src -Igen-cpp
AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
-AM_CXXFLAGS = -Wall -Wextra -std=c++0x -pedantic
+AM_CXXFLAGS = -Wall
AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS)
clean-local: