Well, a few things come to mind immediately. One is that warnings are lexically scoped these days, so it should be easier to test that theory. Another is the diagnostics pragma (or splain), which explains what went wrong when you get an error or warning. The line use diagnostics -verbose; right after your other pragmas will tell you more than you wanted to know.