diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 5f08514085b..824c4bf2881 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -2896,8 +2896,8 @@ - - + + false diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index ab02fa67f6a..d89fc4a8443 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -36,6 +36,20 @@ #include +int ignoredReturnValue_QSize_height(const QSize &s) +{ + // cppcheck-suppress ignoredReturnValue + s.height(); + return s.height(); +} + +int ignoredReturnValue_QSize_width(const QSize &s) +{ + // cppcheck-suppress ignoredReturnValue + s.width(); + return s.width(); +} + void unusedVariable_QTransform() { // cppcheck-suppress unusedVariable