summaryrefslogtreecommitdiffstats
path: root/src/network/access
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-08-12 10:58:06 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-08-13 11:51:10 +0200
commit0b984e141bff9ae760efa0e81a9f106093552538 (patch)
tree969e4ee92f3d0625bcd42e5349abff0ad72046bb /src/network/access
parent7f4f346e51b0479a0ab0b927e586e6c626028b4b (diff)
Bound the scope of QTRY_LOOP_IMPL()'s local variable
QTRY_IMPL() exercises QTRY_LOOP_IMPL() twice, once directly, the second time via QTRY_TIMEOUT_DEBUG_IMPL(); and QTRY_LOOP_IMPL() deliberately doesn't bound its scope (e.g. with the canonical do{...}while(0) trick) so that the latter can access its local variable. Unfortunately, this means the local's declaration in the second use of QTRY_LOOP_IMPL() shadows the first. So enclose the first in braces to bound the scope. Fixes: QTBUG-77297 Change-Id: I849bfe0b8abfb517ed3e783abf86c602163db137 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/network/access')
0 files changed, 0 insertions, 0 deletions