Fix #1224: Don't use deprecated reporting methods
Merge pull request #1231 from gzm0/compiler-deprecation

Fix #1224: Don't use deprecated reporting methods