Disable warning that fails static analysis build

When static analysis is enabled, deprecation warnings are thrown which
still turn into errors during compilation. (Static analysis warnings
don't turn into errors but the deprecation warnings are coming directly
from the compiler.)