From: Alp Toker Date: Wed, 1 Jan 2014 06:57:01 +0000 (+0000) Subject: Silence g++ 4.9 build issue in unit tests X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a18007d9d60c937381f28755bde26a7a35136085;p=oota-llvm.git Silence g++ 4.9 build issue in unit tests Stopgap measure until we can just use static_assert(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198273 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/IR/ValueMapTest.cpp b/unittests/IR/ValueMapTest.cpp index 5aaf9058362..cc844ba30b0 100644 --- a/unittests/IR/ValueMapTest.cpp +++ b/unittests/IR/ValueMapTest.cpp @@ -117,7 +117,8 @@ TYPED_TEST(ValueMapTest, OperationsWork) { template void CompileAssertHasType(VarType) { - typedef char assert[is_same::value ? 1 : -1]; + LLVM_ATTRIBUTE_UNUSED typedef char + assert[is_same::value ? 1 : -1]; } TYPED_TEST(ValueMapTest, Iteration) {