fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+3
-1
@@ -49,7 +49,9 @@ private:
|
||||
qint64 m_finishedTime;
|
||||
};
|
||||
|
||||
static bool withinTolerance(qint64 measured, qint64 expected, qint64 tolerance) {
|
||||
// defined but only used by aes_test_fire_automaton.cpp; AUTOMOC pulls the header
|
||||
// into a separate TU that never calls it, so mark it to suppress -Wunused-function
|
||||
[[maybe_unused]] static bool withinTolerance(qint64 measured, qint64 expected, qint64 tolerance) {
|
||||
return qAbs(measured-expected) <= tolerance;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user