[Chapel Merge] Avoid C++ compiler warnings in dyno tests

Branch: refs/heads/main
Revision: e979d789d16feb5244d43d2340a20bcec6e4558a
Author: mppf
Link: Avoid C++ compiler warnings in dyno tests by mppf · Pull Request #27235 · chapel-lang/chapel · GitHub
Log Message:
Avoid C++ compiler warnings in dyno tests (#27235)

I observed some warnings-as-errors when doing make test-dyno with GCC
14.2. This PR fixes them.

Reviewed by @DanilaFe - thanks!

Compare: Comparing 8e928429115cfac4392f746790c8de563ed6ec1d...549fb79e66b828c7f08421267c3bf2a290cd6b93 · chapel-lang/chapel · GitHub

Diff:
M frontend/test/resolution/testLoopIndexVars.cpp
M frontend/test/resolution/testTuples.cpp
https://github.com/chapel-lang/chapel/pull/27235.diff