Skip to content

Commit 94eeb79

Browse files
committed
cswriter: do not print a useless warning when input is JSON
If someone uses a plain-text format, they cannot really expect scan properties to be preserved.
1 parent 1317c98 commit 94eeb79

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/cswriter.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@ void CovWriter::flush()
100100
{
101101
d->str.flush();
102102
}
103+
104+
// only to prevent AbstractWriter::setScanProps() from printing a warning
105+
void CovWriter::setScanProps(const TScanProps &)
106+
{
107+
}

src/cswriter.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class CovWriter: public AbstractWriter {
2929

3030
virtual void handleDef(const Defect &def);
3131
virtual void flush();
32+
virtual void setScanProps(const TScanProps &);
3233

3334
private:
3435
struct Private;

0 commit comments

Comments
 (0)