warning resolving for constant rewrite in driver