summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcommandlineparser.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2025-01-09 14:02:38 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2025-01-13 17:56:27 +0100
commit2578d72a7cb9b784a00efb04df6a31496d92dcdc (patch)
treef62c8f406bd714115399b41d2edbb9f81c7e94c2 /src/corelib/tools/qcommandlineparser.cpp
parentb562c36a9a7be5f62a8e79b93c9728381775f460 (diff)
Remove constexpr from a function that doesn't need it, and asserts
The call to q_assert() isn't constexpr, so can't happen in a constexpr function. Most compilers shrug this off as they can see the code actually is unreachable, but apparently debug builds on QNX can't work that out. Since nothing actually needs the function to be constexpr, remove that qualifier. In the process, move the offset-case, which is also unreachable, to the end of the switch, closer to the unreachable end of the function (since I failed to spot that there were two unreachable parts at first). Pick-to: 6.9 6.8 Fixes: QTBUG-132698 Change-Id: Ibdde7abd91d284e1c1af53e2b5e142fc234400a8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions