diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2022-03-16 20:59:39 +0100 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-03-17 06:14:20 +0000 |
| commit | 021134195e405745a61c64ad7dd801e24a1b37e4 (patch) | |
| tree | cb57cf0457ae6684266748971e1a1873a78e01ec /src/opengl/qopengldebug.h | |
| parent | d10b910e39c1d018c3d78f7f9c1ef31b37e4a132 (diff) | |
QHash: fix -Werror=maybe-uninitialized (GCC 11.2)
The compiler doesn't understand understand that the only way ok can be
true is for qstrntoll() to have been executed.
qhash.cpp:158:9: error: ‘seed’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
158 | if (seed) {
| ^~
Help poor GCC by initializing the variable unconditionally.
Amends cc5cc3225d6a397270a6d4c615e850e43db805c4.
Change-Id: Ic8387e0add2291d994f7f4d96c4bc614b2a8aa99
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl/qopengldebug.h')
0 files changed, 0 insertions, 0 deletions
