Skip to content

Commit 54e3ee4

Browse files
committed
Silence the linter on assert in irep.h
Using invariant.h would drag in a number of additional headers into almost every file thus it seems preferable to maintain the assert here.
1 parent a008572 commit 54e3ee4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/irep.h

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class irept
122122
{
123123
if(data!=&empty_d)
124124
{
125+
// NOLINTNEXTLINE(build/deprecated)
125126
assert(data->ref_count!=0);
126127
data->ref_count++;
127128
#ifdef IREP_DEBUG

0 commit comments

Comments
 (0)