411 REFERENCE · Wikibooks
C++ Language/ProgramFlow/Parameters/UnusedParameter
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Many compilers will warn you if you define a parameter that isn't used anywhere inside your function.
If you are doing this intentionally, mark that parameter with [[maybe_unused]].
Additional information about unused parameters (includes interactive examples)