use new registerWarning method only in 1.3.6