Try whatever Flymake is doing

If Flymake gives confusing results, it can be useful to try the same
command in a compilation buffer.  This function lets you do just that.