diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-03-20 13:15:34 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-03-21 06:34:25 +0100 |
| commit | 83e11b5fc42ef5bbb7d0226c672e83f58021869e (patch) | |
| tree | b82cc35cd0e58fa63c63beed4478fa3d489eab14 /src/corelib/kernel/qelapsedtimer.cpp | |
| parent | d15ef5bc3ae4df5ddc374d4bc8fee736868f1628 (diff) | |
Fix build with latest Apple clang version
Building with Apple clang 13.1.6.13160021 (from command line tools 13.3)
results in
qhash.cpp:754:39: error: passing 16-byte aligned argument to 32-byte
aligned parameter 3 of 'operator()' may result in an unaligned pointer
access [-Werror,-Walign-mismatch]
hash2x32bytes(state0, state1, src, src + 1);
^
Help the compiler with deducing the right type for 'src' and 'srcend'.
Also makes 'src' const explicitly.
Change-Id: Id14a034f0fa4c2a002d9b37729d803a50a0e5e9c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qelapsedtimer.cpp')
0 files changed, 0 insertions, 0 deletions
