diff options
author | Mate Barany <mate.barany@qt.io> | 2022-06-20 14:26:38 +0200 |
---|---|---|
committer | Mate Barany <mate.barany@qt.io> | 2022-06-22 00:08:34 +0200 |
commit | b9b5734559774d7fe571b94fda7896e4806707f4 (patch) | |
tree | e92eed8d9c87c07a83999ad11ff7f5aa5d7bc65e /src/plugins/platforms/windows/uiautomation | |
parent | 0c82d6a75a19183658eeabf6eda7f2e8ad292e37 (diff) |
Disable useless-cast warning for moc generated code
The useless-cast gcc warning is disabled in the files generated by
the moc. A typical warning is like
using_t = void(Counter::*)(int );
if (*reinterpret_cast<_t*>(_a[1]) ==
static_cast<_t>(&Counter::valueChanged)) {
*result = 0;
return;
}
Removing the static cast results in a compilation error
"address of overloaded function with no contextual type-of
information" in moc_myobject.cpp files.
Checking whether we have an overload set or a single function
might be too much effort for too little benefit and may not worth
it.
Fixes: QTBUG-71938
Change-Id: I6f67e163a3493b51fb95f54218ce6bf9a302f824
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/uiautomation')
0 files changed, 0 insertions, 0 deletions