From: Argyrios Kyrtzidis Date: Sun, 15 Aug 2010 01:15:27 +0000 (+0000) Subject: Add ATTRIBUTE_UNUSED to methods not supposed to be used. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed635e4bff56ffc50d9ad2929eee9d7ffc516c2d;p=clang Add ATTRIBUTE_UNUSED to methods not supposed to be used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111087 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index 88d71ce042..d01c4a0523 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -660,8 +660,9 @@ class RecordLayoutBuilder { void UpdateAlignment(unsigned NewAlignment); - RecordLayoutBuilder(const RecordLayoutBuilder&); // DO NOT IMPLEMENT - void operator=(const RecordLayoutBuilder&); // DO NOT IMPLEMENT + // DO NOT IMPLEMENT + RecordLayoutBuilder(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED; + void operator=(const RecordLayoutBuilder&) ATTRIBUTE_UNUSED; public: static const CXXMethodDecl *ComputeKeyFunction(const CXXRecordDecl *RD); }; diff --git a/lib/Frontend/VerifyDiagnosticsClient.cpp b/lib/Frontend/VerifyDiagnosticsClient.cpp index ae36481444..f2a2606317 100644 --- a/lib/Frontend/VerifyDiagnosticsClient.cpp +++ b/lib/Frontend/VerifyDiagnosticsClient.cpp @@ -18,6 +18,7 @@ #include "llvm/ADT/SmallString.h" #include "llvm/Support/Regex.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/Support/Compiler.h" using namespace clang; VerifyDiagnosticsClient::VerifyDiagnosticsClient(Diagnostic &_Diags, @@ -100,8 +101,8 @@ protected: : Location(Location), Text(Text), Count(Count) { } private: - Directive(const Directive&); // DO NOT IMPLEMENT - void operator=(const Directive&); // DO NOT IMPLEMENT + Directive(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT + void operator=(const Directive&) ATTRIBUTE_UNUSED; // DO NOT IMPLEMENT }; /// StandardDirective - Directive with string matching.