diff --git a/tools/llvm-cov/SourceCoverageViewText.cpp b/tools/llvm-cov/SourceCoverageViewText.cpp index 70ded87c495..69f4ad4fbfc 100644 --- a/tools/llvm-cov/SourceCoverageViewText.cpp +++ b/tools/llvm-cov/SourceCoverageViewText.cpp @@ -59,9 +59,11 @@ unsigned getDividerWidth(const CoverageViewOptions &Opts) { } // anonymous namespace -void SourceCoverageViewText::renderViewHeader(raw_ostream &OS) { (void)OS; } +void SourceCoverageViewText::renderViewHeader( + raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {} -void SourceCoverageViewText::renderViewFooter(raw_ostream &OS) { (void)OS; } +void SourceCoverageViewText::renderViewFooter( + raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {} void SourceCoverageViewText::renderSourceName(raw_ostream &OS) { getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName() @@ -74,11 +76,9 @@ void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS, OS << " |"; } -void SourceCoverageViewText::renderLineSuffix(raw_ostream &OS, - unsigned ViewDepth) { - (void)OS; - (void)ViewDepth; -} +void SourceCoverageViewText::renderLineSuffix( + raw_ostream &OS LLVM_ATTRIBUTE_UNUSED, + unsigned ViewDepth LLVM_ATTRIBUTE_UNUSED) {} void SourceCoverageViewText::renderViewDivider(raw_ostream &OS, unsigned ViewDepth) {