A fake template isn't the solution. It's only guaranteed to work if the error you want to silence depends on the template parameter. E.g. you could template this function, making
MaaHwnd
a template parameter.