Skip to content

Commit dae4be4

Browse files
committed
Fix unused function errors
1 parent 8c2c4a7 commit dae4be4

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

lib/cppcheck.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ class CppCheck::CppCheckLogger : public ErrorLogger
104104
return mRemarkComments;
105105
}
106106

107-
void setRemarkComments(std::vector<RemarkComment> remarkComments)
108-
{
109-
mRemarkComments = std::move(remarkComments);
110-
}
111-
112107
void setLocationMacros(const Token* startTok, const std::vector<std::string>& files)
113108
{
114109
mLocationMacros.clear();

lib/preprocessor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ void Preprocessor::inlineSuppressions(const simplecpp::TokenList &tokens, Suppre
312312
}
313313
}
314314

315+
// cppcheck-suppress unusedFunction
315316
std::vector<RemarkComment> Preprocessor::getRemarkComments(const simplecpp::TokenList &tokens) const
316317
{
317318
std::vector<RemarkComment> ret;

0 commit comments

Comments
 (0)