[Chapel Merge] dyno: Fix GCC-specific warnings in testReturnTypes

Branch: refs/heads/main
Revision: 70409ed
Author: DanilaFe
Link: dyno: Fix GCC-specific warnings in testReturnTypes by DanilaFe · Pull Request #20458 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20458 from DanilaFe/fix-return-tests

dyno: Fix GCC-specific warnings in testReturnTypes

Clang won't pick these up despite claiming to understand
the flags. It's not fun breaking builds for other people
only.

This is pretty trivial and I'll probably merge it myself tomorrow
morning. Just wanted to "sleep" on it.

Reviewed by @mppf - thanks!

TESTING

  • The current main didn't build make test-dyno on chapcs11,
    but this branch did. I can't reproduce the bug locally due to
    having Apple Clang and no GCC.

Signed-off-by: Danila Fedorin daniel.fedorin@hpe.com

Modified Files:
M compiler/dyno/test/resolution/testReturnTypes.cpp

Compare: https://github.com/chapel-lang/chapel/compare/8bf656e82e34...70409ed0359f