From 7268d97ae6c1680be96e5758c33cdd46efb6ce54 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 14 Aug 2010 21:35:10 +0000 Subject: 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 --- utils/unittest/googletest/include/gtest/internal/gtest-port.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/unittest') diff --git a/utils/unittest/googletest/include/gtest/internal/gtest-port.h b/utils/unittest/googletest/include/gtest/internal/gtest-port.h index 9683271..fb93619 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 -- cgit v1.1