aboutsummaryrefslogtreecommitdiff
path: root/utils/unittest
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-14 21:35:10 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-14 21:35:10 +0000
commit7268d97ae6c1680be96e5758c33cdd46efb6ce54 (patch)
tree84f3c90c87b7f97d5502386d73814a1c19025240 /utils/unittest
parent132929aa9e1b0b00d2643408d88239c20f1e7ed7 (diff)
Add ATTRIBUTE_UNUSED to methods that are not supposed to be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r--utils/unittest/googletest/include/gtest/internal/gtest-port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/unittest/googletest/include/gtest/internal/gtest-port.h b/utils/unittest/googletest/include/gtest/internal/gtest-port.h
index 9683271e48..fb936199f6 100644
--- a/utils/unittest/googletest/include/gtest/internal/gtest-port.h
+++ b/utils/unittest/googletest/include/gtest/internal/gtest-port.h
@@ -556,12 +556,12 @@
// A macro to disallow operator=
// This should be used in the private: declarations for a class.
#define GTEST_DISALLOW_ASSIGN_(type)\
- void operator=(type const &)
+ void operator=(type const &) GTEST_ATTRIBUTE_UNUSED_
// A macro to disallow copy constructor and operator=
// This should be used in the private: declarations for a class.
#define GTEST_DISALLOW_COPY_AND_ASSIGN_(type)\
- type(type const &);\
+ type(type const &) GTEST_ATTRIBUTE_UNUSED_;\
GTEST_DISALLOW_ASSIGN_(type)
// Tell the compiler to warn about unused return values for functions declared