summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-01-30 18:55:47 +0000
committerRenato Golin <renato.golin@linaro.org>2014-01-30 18:55:47 +0000
commitb68991fd8798f77642dd01d57b8f35de216bd057 (patch)
treec5ae919933ca6013245ede905a54e5f75c3dfe5e /utils
parent735c98d94c769a255c2eb2f4fa6edc68df75a8dd (diff)
downloadllvm-b68991fd8798f77642dd01d57b8f35de216bd057.tar.gz
llvm-b68991fd8798f77642dd01d57b8f35de216bd057.tar.bz2
llvm-b68991fd8798f77642dd01d57b8f35de216bd057.tar.xz
Comment out unused macro because of warning
Modern compilers (Clang 3.4, GCC 4.8) warn on variadic macros being introduced in C99, which produces a huge number of useless diagnostics since this macro is unused in the whole project. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/unittest/googletest/include/gtest/gtest-typed-test.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/unittest/googletest/include/gtest/gtest-typed-test.h b/utils/unittest/googletest/include/gtest/gtest-typed-test.h
index fe1e83b274..6ded1b124b 100644
--- a/utils/unittest/googletest/include/gtest/gtest-typed-test.h
+++ b/utils/unittest/googletest/include/gtest/gtest-typed-test.h
@@ -236,6 +236,8 @@ INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, MyTypes);
template <typename gtest_TypeParam_> \
void GTEST_CASE_NAMESPACE_(CaseName)::TestName<gtest_TypeParam_>::TestBody()
+// Silencing C99 build warnings
+#if 0
# define REGISTER_TYPED_TEST_CASE_P(CaseName, ...) \
namespace GTEST_CASE_NAMESPACE_(CaseName) { \
typedef ::testing::internal::Templates<__VA_ARGS__>::type gtest_AllTests_; \
@@ -243,6 +245,7 @@ INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, MyTypes);
static const char* const GTEST_REGISTERED_TEST_NAMES_(CaseName) = \
GTEST_TYPED_TEST_CASE_P_STATE_(CaseName).VerifyRegisteredTestNames(\
__FILE__, __LINE__, #__VA_ARGS__)
+#endif
// The 'Types' template argument below must have spaces around it
// since some compilers may choke on '>>' when passing a template