Branch: refs/heads/main
Revision: fa7510e
Author: bradcray
Link: Only declare and use mli debugging variables when debugging is enabled by bradcray · Pull Request #19450 · chapel-lang/chapel · GitHub
Log Message:
Merge pull request #19450 from bradcray/mli-debug-variables-only-when-debugging
Only declare and use mli debugging variables when debugging is enabled
[reviewed by @lydia-duncan and @dlongnecke-cray]
As C compiler warnings get better at dead variable analysis, we're
getting warnings about variables that are only necessary when
debugging. That is, they're always declared and set, but then
never used unless debug printing is on. Here, we wrap their
declarations and assignments in #ifdefs to only do anything with
them if debugging is enabled.
Modified Files:
M runtime/etc/src/mli/chpl-mli-server-runtime.c
Compare: https://github.com/chapel-lang/chapel/compare/8e5c02ab4334...fa7510ef40b1