Recently there was a lengthy discussion about if redefining constants is undefined behavior or not, and the takeaway is that, at least for now, the Julia devs consider it to be undefined behavior. I do not really understand why are you worried about suppressing this message if your program has absolutely no guarantees of working as intended after this happens.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Strange behavior, when constant is redefined inside a function | 25 | 3284 | November 29, 2017 | |
| Introduce a command-line option to warn on constant redefinition? | 6 | 430 | February 24, 2025 | |
| Redefining constants in functions, confusing behavior | 3 | 1367 | August 14, 2019 | |
| Invalid redefinition of constant? | 1 | 1769 | June 4, 2017 | |
| Typeconst proposal | 33 | 2502 | February 9, 2022 |