Unused warning with transparent inline

I neglected to reference the open ticket:

I assume that will be addressed under the aegis of “how to warn about Inlined expansions”. (What knob to press or pull, what to report.)

For student use of 3.6.4, -Wconf:msg=regex, but the message doesn’t have enough information.

Perhaps in future, the origin of the diagnostic will specify what was inlined.

I wonder if msg matches the whole “explanation” when -explain is turned on. Often a message will report that there was code inlined from a file.

Adding @nowarn annotations to inline code, as in your item 2, works only recently. Adding @unused may already work in 3.6, where it issues a warning only if a problem is detected both times the check runs (after typer and again a few phases later).

2 Likes