Skip to content

Commit 5c4cea9

Browse files
committed
suppressed clang-tidy warning
1 parent 37055b1 commit 5c4cea9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/reactor-cpp/action.hh

+7
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,15 @@ public:
153153

154154
class Timer : public BaseAction {
155155
protected:
156+
#if __has_warning("-Wcppcoreguidelines-non-private-member-variables-in-classes")
157+
#pragma clang diagnostic push
158+
#pragma clang diagnostic ignored "-Wcppcoreguidelines-non-private-member-variables-in-classes"
159+
#endif
156160
Duration offset_{0};
157161
Duration period_{0};
162+
#if __has_warning("-Wcppcoreguidelines-non-private-member-variables-in-classes")
163+
#pragma clang diagnostic pop
164+
#endif
158165

159166
void cleanup() noexcept final;
160167

0 commit comments

Comments
 (0)