Use:
#pragma option(strict,on)
Instead of:
#pragma option(pedantic,on)
You can also disable deprecation using:
#pragma option(deprecation,off)
As it says in the docs, pedantic warnings can change across versions, so if you use it, you are subject to fixing your code potentially in each release.