Skip to content

Commit 0cd4101

Browse files
committed
Use LLVM_ATTRIBUTE_UNUSED instead of void casts; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274139 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent cdfe078 commit 0cd4101

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/llvm-cov/SourceCoverageViewText.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ unsigned getDividerWidth(const CoverageViewOptions &Opts) {
5959

6060
} // anonymous namespace
6161

62-
void SourceCoverageViewText::renderViewHeader(raw_ostream &OS) { (void)OS; }
62+
void SourceCoverageViewText::renderViewHeader(
63+
raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {}
6364

64-
void SourceCoverageViewText::renderViewFooter(raw_ostream &OS) { (void)OS; }
65+
void SourceCoverageViewText::renderViewFooter(
66+
raw_ostream &OS LLVM_ATTRIBUTE_UNUSED) {}
6567

6668
void SourceCoverageViewText::renderSourceName(raw_ostream &OS) {
6769
getOptions().colored_ostream(OS, raw_ostream::CYAN) << getSourceName()
@@ -74,11 +76,9 @@ void SourceCoverageViewText::renderLinePrefix(raw_ostream &OS,
7476
OS << " |";
7577
}
7678

77-
void SourceCoverageViewText::renderLineSuffix(raw_ostream &OS,
78-
unsigned ViewDepth) {
79-
(void)OS;
80-
(void)ViewDepth;
81-
}
79+
void SourceCoverageViewText::renderLineSuffix(
80+
raw_ostream &OS LLVM_ATTRIBUTE_UNUSED,
81+
unsigned ViewDepth LLVM_ATTRIBUTE_UNUSED) {}
8282

8383
void SourceCoverageViewText::renderViewDivider(raw_ostream &OS,
8484
unsigned ViewDepth) {

0 commit comments

Comments
 (0)