View Issue Details
|0001409: Replace MPT_UNREFERENCED_PARAMETER and MPT_UNUSED_VARIABLE with [[maybe_unused]]
As we are on C++17 now, we can use
|No tags attached.
|Has the bug occurred in previous versions?
|Tested code revision (in case you know it)
I actually do not think this is useful. Quite the opposite. Around 50% of our uses are of the following form:
I still do not think this would be very useful.
If anything, I would prefer a form of this feature that would actually warn if used in the opposite case when applied to a variable that actually does get used regardless. Our current macro does theoretically semantically allow for such a future warning, while