[mcs] Make unused event warning reporting consistent to csc. Fixes #19095