aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/CMakeLists.txt
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-11-26 16:52:21 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-12-18 08:17:44 +0000
commit844a939af5607c51d724658351b533aaa2b4508a (patch)
treedccbca5b0b862d34d29ef42d4b16bb23c22e930b /tests/auto/qml/qmltc/CMakeLists.txt
parentab60c3fe7096fb0b4ed3f7d8a1aae57c3e102e43 (diff)
Fix warnings from gcc 11.2 about ignoring [[maybe_unused]]
QQmltcObjectCreationHelper::m_size was declared [[maybe_unused]] because it's only used in assertions; but this means the compiler can see, in a debug build, that it is used, so the [[maybe_unused]] is ignored; which means a build gets spammed with warnings about the attempt to suppress an unused member warning. Replace the [[maybe_unused]] on the declaration with a Q_UNUSED(m_size) in the constructor body. Change-Id: I747059d091384b4b90069be30bc8d5ffa6dbc7d7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tests/auto/qml/qmltc/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions