[Chapel Merge] Re-protect some debug-only variables from "unused

Branch: refs/heads/master
Revision: f10fe9b
Author: gbtitus
Log Message:

Merge pull request #17819 from gbtitus/fix-default-heap-PR

Re-protect some debug-only variables from "unused variable" warnings.

(Reviewed by @ronawho.)

Restore ifdefs that protected against "unused variable" warnings
(which we turn into errors) when debug code isn't included. I removed
these in PR #17762 and failed to catch my mistake because I only did
an optimized+debug build, not an optimized+nondebug one.

Modified Files:
M runtime/src/comm/ofi/comm-ofi.c

Compare: https://github.com/chapel-lang/chapel/compare/cac6ad0b59a6...f10fe9b2425c