diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-21 11:24:17 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-31 08:00:11 -0700 |
| commit | f1457b7b4742a3903b441d04c12cf500038f80b8 (patch) | |
| tree | a2368b07922293708f5db4bf001e434cf92eeb3e /src/sql/doc/snippets/sqldatabase/sqldatabase.cpp | |
| parent | e9c9e9225c333799258bb75c98f8722e074f272e (diff) | |
tst_QMetaType: fix warning that buffer may be unused
We pass a pointer to uninitialized memory to QMetaType::create().
There's no harm because we're using the invalid QMetaType, but GCC is
actually right to complain for any other type.
qtestcase.h:54:25: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized]
qmetatype.h:454:11: note: by argument 2 of type ‘const void*’ to ‘void* QMetaType::create(const void*) const’ declared here
Pick-to: 6.3 6.4
Change-Id: I3859764fed084846bcb0fffd1703eb7967acf0d7
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase/sqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
